35 lines
801 B
Nix
35 lines
801 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
home.persistence."/state" = {
|
|
files = with lib.lists;
|
|
[
|
|
".ssh/known_hosts"
|
|
".cache/fuzzel"
|
|
]
|
|
++ optionals config.programs.rofi.enable [
|
|
".cache/rofi3.druncache"
|
|
];
|
|
directories = with lib.lists;
|
|
[".config/dconf"]
|
|
++
|
|
# 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"
|
|
];
|
|
};
|
|
}
|