diff options
| author | adikro <adikro@disroot.org> | 2026-02-12 23:04:24 +0100 |
|---|---|---|
| committer | adikro <adikro@disroot.org> | 2026-02-12 23:04:24 +0100 |
| commit | 512483106110b5f9209bb03238d44b991fe15d22 (patch) | |
| tree | 94b53e9e610053d4584f00799843c901d10e0b19 /hm/conf | |
| parent | 9868584ddabad45a9964ae9bf64d109963fd1e3d (diff) | |
thinkpad configuration finalization
Diffstat (limited to 'hm/conf')
| -rw-r--r-- | hm/conf/xdg-dirs.nix | 32 | ||||
| -rw-r--r-- | hm/conf/xdg-mime.nix | 1 |
2 files changed, 17 insertions, 16 deletions
diff --git a/hm/conf/xdg-dirs.nix b/hm/conf/xdg-dirs.nix index ee34bd0..ba5b063 100644 --- a/hm/conf/xdg-dirs.nix +++ b/hm/conf/xdg-dirs.nix @@ -6,10 +6,10 @@ in options.hm.conf.xdg-dirs = { enable = lib.mkEnableOption "enables xdg dirs"; - mediaPath = lib.mkOption { + storagePath = lib.mkOption { type = lib.types.path; default = config.home.homeDirectory; - description = "base path for media"; + description = "base path for storage"; }; }; config = lib.mkIf cfg.enable { @@ -20,8 +20,8 @@ in download = "${config.home.homeDirectory}/dl"; documents = "${config.home.homeDirectory}/docs"; - pictures = "${toString cfg.mediaPath}/pics"; - videos = "${toString cfg.mediaPath}/vids"; + pictures = "${toString cfg.storagePath}/pics"; + videos = "${toString cfg.storagePath}/vids"; desktop = null; music = null; @@ -31,23 +31,23 @@ in extraConfig = { PROJECTS = "${config.home.homeDirectory}/proj"; GAMES = "${config.home.homeDirectory}/games"; - MEDIA = "${toString cfg.mediaPath}"; - SS = "${toString cfg.mediaPath}/pics/ss"; - CLIPS = "${toString cfg.mediaPath}/vids/clips"; - MOVIES = "${toString cfg.mediaPath}/movies"; - ANIME = "${toString cfg.mediaPath}/anime"; - ARCHIVE = "${toString cfg.mediaPath}/archive"; + storage = "${toString cfg.storagePath}"; + SS = "${toString cfg.storagePath}/pics/ss"; + CLIPS = "${toString cfg.storagePath}/vids/clips"; + MOVIES = "${toString cfg.storagePath}/movies"; + ANIME = "${toString cfg.storagePath}/anime"; + ARCHIVE = "${toString cfg.storagePath}/archive"; }; }; home.sessionVariables = { PROJECTS = "${config.home.homeDirectory}/proj"; GAMES = "${config.home.homeDirectory}/games"; - MEDIA = "${toString cfg.mediaPath}"; - SS = "${toString cfg.mediaPath}/pics/ss"; - CLIPS = "${toString cfg.mediaPath}/vids/clips"; - MOVIES = "${toString cfg.mediaPath}/movies"; - ANIME = "${toString cfg.mediaPath}/anime"; - ARCHIVE = "${toString cfg.mediaPath}/archive"; + storage = "${toString cfg.storagePath}"; + SS = "${toString cfg.storagePath}/pics/ss"; + CLIPS = "${toString cfg.storagePath}/vids/clips"; + MOVIES = "${toString cfg.storagePath}/movies"; + ANIME = "${toString cfg.storagePath}/anime"; + ARCHIVE = "${toString cfg.storagePath}/archive"; }; }; } diff --git a/hm/conf/xdg-mime.nix b/hm/conf/xdg-mime.nix index 0f55c5d..e024a89 100644 --- a/hm/conf/xdg-mime.nix +++ b/hm/conf/xdg-mime.nix @@ -32,6 +32,7 @@ in "audio/ogg" = [ "mpv.desktop" ]; "text/html" = [ "firefox.desktop" ]; + "x-scheme-handler/terminal" = [ "foot.desktop" ]; "x-scheme-handler/http" = [ "firefox.desktop" ]; "x-scheme-handler/https" = [ "firefox.desktop" ]; "inode/directory" = [ "thunar.desktop" ]; |
