HASH 31d104a0c30b
DATE 2026-03-09
SUBJECT xdg: custom user dir settings change
FILES 3 CHANGED
HASH 31d104a0c30b
DATE 2026-03-09
SUBJECT xdg: custom user dir settings change
FILES 3 CHANGED
┌─ modules/home/nixos/hyprland/components/hyprcapture.nix ───────────────────┐
│ diff --git a/modules/home/nixos/hyprland/components/hyprcapture.nix b/modules/home │
│ /nixos/hyprland/components/hyprcapture.nix │
│ index 3a3b387..3552019 100644 │
│ --- a/modules/home/nixos/hyprland/components/hyprcapture.nix │
│ +++ b/modules/home/nixos/hyprland/components/hyprcapture.nix │
│ @@ -18,8 +18,8 @@ in { │
│ │
│ # Add XDG user directories that the scripts use │
│ xdg.userDirs.extraConfig = { │
│ - XDG_RECORDINGS_DIR = "${config.xdg.userDirs.videos}/Recordings"; │
│ - XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; │
│ + RECORDINGS = "${config.xdg.userDirs.videos}/Recordings"; │
│ + SCREENSHOTS = "${config.xdg.userDirs.pictures}/Screenshots"; │
│ }; │
│ │
│ wayland.windowManager.hyprland.settings.bind = [ │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...nd/components/hyprcapture.nix ───┐
│ diff --git a/modules/home/nixos/hyprland/com │
│ ponents/hyprcapture.nix b/modules/home/nixos │
│ /hyprland/components/hyprcapture.nix │
│ index 3a3b387..3552019 100644 │
│ --- a/modules/home/nixos/hyprland/components │
│ /hyprcapture.nix │
│ +++ b/modules/home/nixos/hyprland/components │
│ /hyprcapture.nix │
│ @@ -18,8 +18,8 @@ in { │
│ │
│ # Add XDG user directories that the scr │
│ ipts use │
│ xdg.userDirs.extraConfig = { │
│ - XDG_RECORDINGS_DIR = "${config.xdg.us │
│ erDirs.videos}/Recordings"; │
│ - XDG_SCREENSHOTS_DIR = "${config.xdg.u │
│ serDirs.pictures}/Screenshots"; │
│ + RECORDINGS = "${config.xdg.userDirs.v │
│ ideos}/Recordings"; │
│ + SCREENSHOTS = "${config.xdg.userDirs. │
│ pictures}/Screenshots"; │
│ }; │
│ │
│ wayland.windowManager.hyprland.settings │
│ .bind = [ │
└──────────────────────────────────────────────┘
┌─ modules/home/nixos/productivity/obsidian.nix ─────────────────────────────┐
│ diff --git a/modules/home/nixos/productivity/obsidian.nix b/modules/home/nixos/pro │
│ ductivity/obsidian.nix │
│ index b9a68b2..2b56f55 100644 │
│ --- a/modules/home/nixos/productivity/obsidian.nix │
│ +++ b/modules/home/nixos/productivity/obsidian.nix │
│ @@ -10,7 +10,7 @@ │
│ # admin = osConfig.ooknet.host.admin; │
│ # TODO: use admin.githubUsername │
│ notesRepo = "[email protected]:ooks-io/notes.git"; │
│ - notesPath = "${config.xdg.userDirs.extraConfig.XDG_NOTES_DIR}"; │
│ + notesPath = "${config.xdg.userDirs.extraConfig.NOTES}"; │
│ in { │
│ config = mkIf (elem "productivity" profiles) { │
│ home.packages = [pkgs.obsidian]; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ ...xos/productivity/obsidian.nix ───┐
│ diff --git a/modules/home/nixos/productivity │
│ /obsidian.nix b/modules/home/nixos/productiv │
│ ity/obsidian.nix │
│ index b9a68b2..2b56f55 100644 │
│ --- a/modules/home/nixos/productivity/obsidi │
│ an.nix │
│ +++ b/modules/home/nixos/productivity/obsidi │
│ an.nix │
│ @@ -10,7 +10,7 @@ │
│ # admin = osConfig.ooknet.host.admin; │
│ # TODO: use admin.githubUsername │
│ notesRepo = "[email protected]:ooks-io/notes │
│ .git"; │
│ - notesPath = "${config.xdg.userDirs.extraC │
│ onfig.XDG_NOTES_DIR}"; │
│ + notesPath = "${config.xdg.userDirs.extraC │
│ onfig.NOTES}"; │
│ in { │
│ config = mkIf (elem "productivity" profil │
│ es) { │
│ home.packages = [pkgs.obsidian]; │
└──────────────────────────────────────────────┘
┌─ modules/home/nixos/userDirs.nix ──────────────────────────────────────────┐
│ diff --git a/modules/home/nixos/userDirs.nix b/modules/home/nixos/userDirs.nix │
│ index 87bb54a..52faa45 100644 │
│ --- a/modules/home/nixos/userDirs.nix │
│ +++ b/modules/home/nixos/userDirs.nix │
│ @@ -17,10 +17,10 @@ │
│ videos = "${summit}/Media/Videos"; │
│ pictures = "${summit}/Media/Pictures"; │
│ extraConfig = { │
│ - XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; │
│ - XDG_CODE_DIR = "${summit}/code"; │
│ - XDG_RECORDINGS_DIR = "${config.xdg.userDirs.videos}/Recordings"; │
│ - XDG_NOTES_DIR = "${summit}/notes"; │
│ + SCREENSHOTS = "${config.xdg.userDirs.pictures}/Screenshots"; │
│ + CODE = "${summit}/code"; │
│ + RECORDINGS = "${config.xdg.userDirs.videos}/Recordings"; │
│ + NOTES = "${summit}/notes"; │
│ }; │
│ }; │
│ }; │
└────────────────────────────────────────────────────────────────────────────────────┘
┌─ modules/home/nixos/userDirs.nix ────┐
│ diff --git a/modules/home/nixos/userDirs.nix │
│ b/modules/home/nixos/userDirs.nix │
│ index 87bb54a..52faa45 100644 │
│ --- a/modules/home/nixos/userDirs.nix │
│ +++ b/modules/home/nixos/userDirs.nix │
│ @@ -17,10 +17,10 @@ │
│ videos = "${summit}/Media/Videos"; │
│ pictures = "${summit}/Media/Pictures" │
│ ; │
│ extraConfig = { │
│ - XDG_SCREENSHOTS_DIR = "${config.xdg │
│ .userDirs.pictures}/Screenshots"; │
│ - XDG_CODE_DIR = "${summit}/code"; │
│ - XDG_RECORDINGS_DIR = "${config.xdg. │
│ userDirs.videos}/Recordings"; │
│ - XDG_NOTES_DIR = "${summit}/notes"; │
│ + SCREENSHOTS = "${config.xdg.userDir │
│ s.pictures}/Screenshots"; │
│ + CODE = "${summit}/code"; │
│ + RECORDINGS = "${config.xdg.userDirs │
│ .videos}/Recordings"; │
│ + NOTES = "${summit}/notes"; │
│ }; │
│ }; │
│ }; │
└──────────────────────────────────────────────┘
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET