34 lines
783 B
Nix
34 lines
783 B
Nix
{ config, lib, inputs, ... }: {
|
|
|
|
imports = [
|
|
inputs.impermanence.nixosModules.home-manager.impermanence
|
|
];
|
|
|
|
options.homeconfig.impermanence.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.homeconfig.impermanence.enable {
|
|
|
|
home.persistence."/persist/home/nathan" = {
|
|
|
|
directories = [
|
|
"Documents"
|
|
"Music"
|
|
"Pictures/Photos"
|
|
"Projects"
|
|
"Videos"
|
|
".ssh"
|
|
".local/share/zoxide"
|
|
".config/sops"
|
|
];
|
|
files = [
|
|
".zsh_history"
|
|
];
|
|
allowOther = true;
|
|
};
|
|
|
|
};
|
|
}
|