move impermanence input up the tree
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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; };
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user