feat(nix/persist): add impermanence to home-manager
This commit is contained in:
parent
bf260096d5
commit
1fe332c302
1 changed files with 12 additions and 0 deletions
|
@ -48,4 +48,16 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
flake.modules.homeManager.default =
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
imports = [ inputs.impermanence.homeManagerModules.impermanence ];
|
||||||
|
options.persistDirs = mkOpts "directory" { };
|
||||||
|
options.persistFiles = mkOpts "file" { };
|
||||||
|
config.home.persistence."/persist${config.home.homeDirectory}" = {
|
||||||
|
allowOther = true;
|
||||||
|
directories = config.persistDirs;
|
||||||
|
files = config.persistFiles;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue