move impermanence input up the tree

This commit is contained in:
2024-10-18 19:27:16 -05:00
parent 1996373de2
commit 50f4f37a8c
4 changed files with 20 additions and 54 deletions

View File

@@ -1,16 +1,7 @@
{ config, lib, self, ... }: {
{ config, lib, ... }: {
options = {};
config = lib.mkMerge [
{
imports = [
self.inputs.impermanence.nixosModules.impermanence
];
}
(lib.mkIf config.disko.impermanent {
config = lib.mkIf config.disko.impermanent {
fileSystems."/persist".neededForBoot = true;
environment.persistence = {
@@ -32,6 +23,5 @@
};
programs.fuse.userAllowOther = true;
})
];
};
}