nixos-config/home-manager/profiles/preservation/default.nix

18 lines
334 B
Nix
Raw Normal View History

{ lib, osConfig, ... }:
{
preservation = {
enable = true;
preserveAt."/persist" = {
directories =
[
".cache/nix"
".local/share/nix"
".ssh"
]
++ lib.optionals osConfig.services.gnome.gnome-keyring.enable [
".local/share/keyrings"
];
};
};
}