about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-04 22:17:29 +0900
committersefidel <contact@sefidel.net>2024-08-06 16:01:39 +0900
commit336c701e81ad9c2ef321b933f9406b739ffe5aac (patch)
treec7b6ae519f680f9ae0cdec5966730039f47247a4
parentb675bd54bd5bf96cbc326ea62a0549338aa27156 (diff)
downloadnixrc-336c701e81ad9c2ef321b933f9406b739ffe5aac.tar.gz
nixrc-336c701e81ad9c2ef321b933f9406b739ffe5aac.zip
feat(modules/persistence)!: import impermanence inside module
-rw-r--r--modules/persistence.nix6
-rw-r--r--nixos/default.nix3
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 = [