nixos-config/modules/home/settings/impermanence/default.nix

25 lines
614 B
Nix

{ config, lib, impermanence, ... }:
{
imports = [ impermanence.homeManagerModules.default ];
home.persistence."${config.xdg.userDirs.extraConfig.XDG_PERSIST_DIR}" = {
enable = !config.targets.genericLinux.enable;
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 []);
};
}