Move more things to xdg paths
This commit is contained in:
parent
04560dfbc5
commit
c41543edcf
23 changed files with 491 additions and 566 deletions
|
@ -3,22 +3,23 @@
|
|||
imports = [ impermanence.homeManagerModules.default ];
|
||||
|
||||
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}" = {
|
||||
enable = true;
|
||||
allowOther = false;
|
||||
removePrefixDirectory = true;
|
||||
directories = [
|
||||
"dirs/Keepers"
|
||||
"dirs/Projects"
|
||||
|
||||
"nix/.local/state/nix/profiles"
|
||||
directories = let
|
||||
home = config.home.homeDirectory;
|
||||
strip = path: lib.removePrefix "${home}/" path;
|
||||
in with config.xdg.userDirs; [
|
||||
"dirs/${strip extraConfig.XDG_KEEPERS_DIR}"
|
||||
"dirs/${strip extraConfig.XDG_PROJECTS_DIR}"
|
||||
"secure/.ssh"
|
||||
] ++ (if config.home.desktop.enable then [
|
||||
"dirs/Documents"
|
||||
"dirs/Games"
|
||||
"dirs/Photos"
|
||||
"dirs/Videos"
|
||||
"dirs/${strip documents}"
|
||||
"dirs/${strip extraConfig.XDG_GAMES_DIR}"
|
||||
"dirs/${strip pictures}"
|
||||
"dirs/${strip videos}"
|
||||
|
||||
"secure/.pki"
|
||||
"state/.local/state/wireplumber"
|
||||
"state/${strip config.xdg.stateHome}/wireplumber"
|
||||
] else []);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue