From 336c701e81ad9c2ef321b933f9406b739ffe5aac Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 4 Aug 2024 22:17:29 +0900 Subject: feat(modules/persistence)!: import impermanence inside module --- modules/persistence.nix | 6 +++++- 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 = [ -- cgit 1.4.1