nix-config/users/common/impermanence.nix

31 lines
684 B
Nix
Raw Normal View History

2023-09-05 17:50:55 +02:00
{
config,
lib,
...
}: {
home.persistence."/state" = {
files = with lib.lists; [
".ssh/known_hosts"
".cache/fuzzel"
];
2023-09-05 17:50:55 +02:00
directories = with lib.lists;
[]
++
# firefox cannot be a symlink as home manager refuses put files outside your $HOME
optionals config.programs.firefox.enable [
".mozilla"
]
++ optionals config.programs.atuin.enable [
".local/share/atuin"
]
++ optionals config.programs.direnv.enable [
".local/share/direnv"
]
++ optionals config.programs.neovim.enable [
".local/share/nvim"
".local/state/nvim"
".cache/nvim"
];
};
}