Update home impermanence to be in the style of GNU Stow

This commit is contained in:
Bun 2025-05-14 00:12:33 -04:00
parent 968ae4631c
commit 66502988ef
22 changed files with 72 additions and 64 deletions

View file

@ -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 []);
};
}