diff options
-rw-r--r-- | modules/persistence.nix | 6 | ||||
-rw-r--r-- | nixos/default.nix | 3 |
2 files changed, 5 insertions, 4 deletions
diff --git a/modules/persistence.nix b/modules/persistence.nix index 22d9be6..989bed0 100644 --- a/modules/persistence.nix +++ b/modules/persistence.nix @@ -1,4 +1,4 @@ -{ config, lib, ... }: +{ config, inputs, lib, ... }: with lib; @@ -6,6 +6,10 @@ let cfg = config.modules.persistence; in { + imports = [ + inputs.impermanence.nixosModules.impermanence + ]; + options.modules.persistence = { enable = mkEnableOption "impermanence persistence"; diff --git a/nixos/default.nix b/nixos/default.nix index 599ba75..4af435a 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -6,7 +6,6 @@ nixpkgs = unstable; extraModules = [ inputs.sops-nix.nixosModules.sops - inputs.impermanence.nixosModules.impermanence inputs.attic.nixosModules.atticd ]; }; @@ -16,7 +15,6 @@ nixpkgs = unstable; extraModules = [ inputs.sops-nix.nixosModules.sops - inputs.impermanence.nixosModules.impermanence inputs.attic.nixosModules.atticd ]; }; @@ -26,7 +24,6 @@ nixpkgs = unstable; extraModules = [ inputs.sops-nix.nixosModules.sops - inputs.impermanence.nixosModules.impermanence inputs.attic.nixosModules.atticd ]; overlays = [ |