From e6ccd2e4f7f06d14994543c1bf947982e11124f6 Mon Sep 17 00:00:00 2001 From: colin Date: Tue, 3 Jan 2023 08:02:03 +0000 Subject: [PATCH] impermanence: split plaintext store to own file (this will bypass some recursion in the next patch) --- modules/impermanence/stores/default.nix | 4 +--- modules/impermanence/stores/plaintext.nix | 9 +++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 modules/impermanence/stores/plaintext.nix diff --git a/modules/impermanence/stores/default.nix b/modules/impermanence/stores/default.nix index 95893ae7..6091d2e1 100644 --- a/modules/impermanence/stores/default.nix +++ b/modules/impermanence/stores/default.nix @@ -6,12 +6,10 @@ in { imports = [ ./crypt.nix + ./plaintext.nix ./private.nix ]; config = lib.mkIf cfg.enable { - sane.impermanence.stores."plaintext" = { - mountpt = "/nix/persist"; - }; }; } diff --git a/modules/impermanence/stores/plaintext.nix b/modules/impermanence/stores/plaintext.nix new file mode 100644 index 00000000..0be289b2 --- /dev/null +++ b/modules/impermanence/stores/plaintext.nix @@ -0,0 +1,9 @@ +{ config, lib, ... }: + +let + cfg = config.sane.impermanence; +in lib.mkIf cfg.enable { + sane.impermanence.stores."plaintext" = { + mountpt = "/nix/persist"; + }; +}