summaryrefslogtreecommitdiff
path: root/systems/common.nix
diff options
context:
space:
mode:
Diffstat (limited to 'systems/common.nix')
-rw-r--r--systems/common.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/systems/common.nix b/systems/common.nix
index 77d04c0..b4dc782 100644
--- a/systems/common.nix
+++ b/systems/common.nix
@@ -26,14 +26,12 @@ in {
hmSetup
- ({config, ...}: {
+ ({secretsDir, ...}: {
age = {
identityPaths = ["/etc/age/key"];
- secrets = let
- baseDir = ../secrets/${config.networking.hostName};
- in {
- rootPassword.file = "${baseDir}/rootPassword.age";
- sethPassword.file = "${baseDir}/sethPassword.age";
+ secrets = {
+ rootPassword.file = secretsDir + "/rootPassword.age";
+ sethPassword.file = secretsDir + "/sethPassword.age";
};
};