nix-config/users/common/impermanence.nix

27 lines
608 B
Nix
Raw Normal View History

2023-09-05 17:50:55 +02:00
{
config,
lib,
2023-10-06 22:01:50 +02:00
nixosConfig,
2023-09-05 17:50:55 +02:00
...
2024-07-26 22:12:48 +02:00
}:
{
2023-09-05 17:50:55 +02:00
home.persistence."/state" = {
2024-07-26 22:12:48 +02:00
files =
with lib.lists;
[
".ssh/known_hosts"
".cache/fuzzel"
]
2024-07-26 22:12:48 +02:00
++ optionals config.programs.rofi.enable [ ".cache/rofi3.druncache" ];
directories =
with lib.lists;
[ ".config/dconf" ]
++ optionals config.programs.direnv.enable [ ".local/share/direnv" ]
++ optionals config.programs.nushell.enable [ ".config/nushell" ]
2023-10-06 22:01:50 +02:00
++ optionals nixosConfig.services.pipewire.enable [
# persist sound config
".local/state/wireplumber"
2023-09-05 17:50:55 +02:00
];
};
}