Update home impermanence to be in the style of GNU Stow
This commit is contained in:
parent
968ae4631c
commit
66502988ef
22 changed files with 72 additions and 64 deletions
|
@ -2,23 +2,24 @@
|
|||
{
|
||||
imports = [ impermanence.homeManagerModules.default ];
|
||||
|
||||
home.persistence."/persist${config.home.homeDirectory}" = {
|
||||
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}" = {
|
||||
enable = !config.targets.genericLinux.enable;
|
||||
directories = [
|
||||
"Keepers"
|
||||
"Projects"
|
||||
|
||||
".gnupg"
|
||||
".local/state/nix/profiles"
|
||||
".ssh"
|
||||
] ++ (if config.home.desktop.enable then [
|
||||
"Documents"
|
||||
"Photos"
|
||||
"Videos"
|
||||
"Games"
|
||||
|
||||
".local/state/wireplumber"
|
||||
] else []);
|
||||
allowOther = false;
|
||||
removePrefixDirectory = true;
|
||||
directories = [
|
||||
"home/Keepers"
|
||||
"home/Projects"
|
||||
|
||||
"nix/.local/state/nix/profiles"
|
||||
"secure/.ssh"
|
||||
] ++ (if config.home.desktop.enable then [
|
||||
"home/Documents"
|
||||
"home/Games"
|
||||
"home/Photos"
|
||||
"home/Videos"
|
||||
|
||||
"secure/.pki"
|
||||
"state/.local/state/wireplumber"
|
||||
] else []);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue