From ae7b12a04fbb2d6cfb3ba54bc48e5f6f28bc4e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 11 Sep 2023 13:02:15 +0300 Subject: [PATCH] vno1-rp3b: move datapool-passphrase to /etc --- flake.nix | 2 ++ hosts/vno1-rp3b/configuration.nix | 4 ++++ secrets.nix | 2 +- .../{datadisk-passphrase.age => datapool-passphrase.age} | 0 4 files changed, 7 insertions(+), 1 deletion(-) rename secrets/vno1-rp3b/{datadisk-passphrase.age => datapool-passphrase.age} (100%) diff --git a/flake.nix b/flake.nix index b8fcb9e..fcec411 100644 --- a/flake.nix +++ b/flake.nix @@ -88,6 +88,8 @@ age.secrets.motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age; age.secrets.root-passwd-hash.file = ./secrets/root_passwd_hash.age; age.secrets.sasl-passwd.file = ./secrets/postfix_sasl_passwd.age; + + age.secrets.datapool-passphrase.file = ./secrets/vno1-rp3b/datapool-passphrase.age; } ]; diff --git a/hosts/vno1-rp3b/configuration.nix b/hosts/vno1-rp3b/configuration.nix index 29896ed..28da67e 100644 --- a/hosts/vno1-rp3b/configuration.nix +++ b/hosts/vno1-rp3b/configuration.nix @@ -91,6 +91,10 @@ services.journald.extraConfig = "Storage=volatile"; + environment.etc = { + "datapool-passphrase.txt".source = config.age.secrets.datapool-passphrase.path; + }; + environment.systemPackages = with pkgs; [ libraspberrypi ]; diff --git a/secrets.nix b/secrets.nix index 78f36a2..0bb6bb0 100644 --- a/secrets.nix +++ b/secrets.nix @@ -37,7 +37,7 @@ in "secrets/vno1-oh2/zfs-passphrase.age" ] // mk ([vno1-rp3b] ++ motiejus) [ - "secrets/vno1-rp3b/datadisk-passphrase.age" + "secrets/vno1-rp3b/datapool-passphrase.age" ] // mk (systems ++ motiejus) [ "secrets/motiejus_passwd_hash.age" diff --git a/secrets/vno1-rp3b/datadisk-passphrase.age b/secrets/vno1-rp3b/datapool-passphrase.age similarity index 100% rename from secrets/vno1-rp3b/datadisk-passphrase.age rename to secrets/vno1-rp3b/datapool-passphrase.age