move xdg.userDirs config to modules/shared/user
Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
@ -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";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user