move xdg.userDirs config to modules/shared/user

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-06-17 14:31:28 +03:00
parent f8d4b52394
commit b3ac24719a
4 changed files with 24 additions and 21 deletions

View File

@ -1,5 +1,4 @@
{
imports = [
./xdg-userdirs.nix
];
}

View File

@ -1,17 +0,0 @@
{config, ...}: let
inherit (config.home) homeDirectory;
home = f: "${homeDirectory}/${f}";
in {
xdg.userDirs = {
enable = true;
createDirectories = true;
templates = home "temps";
publicShare = home "pub";
desktop = home "desktop";
download = home "downloads";
documents = home "docs";
pictures = home "pics";
videos = home "vids";
music = home "music";
};
}

View File

@ -1,6 +1,6 @@
{
imports = [
./common
# ./common
./cosmic
./gnome
./hyprland

View File

@ -1,4 +1,5 @@
{
config,
inputs,
osConfig,
...
@ -8,7 +9,27 @@
self.homeModules.desktop
self.homeModules.programs
];
inherit (osConfig) desktop;
home.stateVersion = osConfig.system.stateVersion;
home.sessionPath = ["$HOME/.local/bin"];
home = {
inherit (osConfig.system) stateVersion;
sessionPath = ["$HOME/.local/bin"];
};
xdg.userDirs = let
inherit (config.home) homeDirectory;
homeDir = f: "${homeDirectory}/${f}";
in {
enable = true;
createDirectories = true;
templates = homeDir "temps";
publicShare = homeDir "pub";
desktop = homeDir "desktop";
download = homeDir "downloads";
documents = homeDir "docs";
pictures = homeDir "pics";
videos = homeDir "vids";
music = homeDir "music";
};
}