From 07a6858fd7ef6ea6794cc37323d7c9cf1162d5b6 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 19 Nov 2023 05:19:05 -0500 Subject: secrets: reorganize & rekey --- systems/common.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'systems/common.nix') diff --git a/systems/common.nix b/systems/common.nix index b1a4159..77d04c0 100644 --- a/systems/common.nix +++ b/systems/common.nix @@ -26,11 +26,11 @@ in { hmSetup - { + ({config, ...}: { age = { identityPaths = ["/etc/age/key"]; secrets = let - baseDir = ../secrets/shared; + baseDir = ../secrets/${config.networking.hostName}; in { rootPassword.file = "${baseDir}/rootPassword.age"; sethPassword.file = "${baseDir}/sethPassword.age"; @@ -38,7 +38,7 @@ in { }; system.stateVersion = "23.11"; - } + }) ]; darwin = [ -- cgit v1.2.3