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

@@ -11,7 +11,7 @@
diskoConfig.url = "./disko";
impermanenceConfig.url = "./impermanence";
impermanence.url = "github:nix-community/impermanence";
};
@@ -22,7 +22,8 @@
./configuration
./configuration/${core_inputs.host}/hardware-configuration.nix
inputs.diskoConfig.module
inputs.impermanenceConfig.module
./impermanence
inputs.impermanence.nixosModules.impermanence
inputs.srvcs.module
inputs.pckgs.module
inputs.prgms.module

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;
})
];
};
}

View File

@@ -1,10 +0,0 @@
{
description = "nix impermanence config";
inputs.impermanence.url = "github:nix-community/impermanence";
outputs = { self, ... }: {
module = { config, lib, ... }: import ./. { inherit config lib self; };
};
}