From 6a5cb9b7544168e7136ab2dbd833c9fc63020db7 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 10 Apr 2022 14:44:33 -0700 Subject: secrets: move all the secrets under module/ Refactor a bit the configuration, which should simplify the management and usage of secrets from now on. --- hosts/tahoe/services.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hosts') diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix index 535eb8d..9bd9a35 100644 --- a/hosts/tahoe/services.nix +++ b/hosts/tahoe/services.nix @@ -1,6 +1,6 @@ { ... }: - -{ +let secrets = config.age.secrets; +in { my.services = { samba = { enable = true; @@ -24,7 +24,7 @@ backup = { repository = "/data/slow/backups/systems"; timerConfig = { oncalendar = "00:15"; }; - passwordFile = config.age.secrets.restic-repo-systemms.path; + passwordFile = secrets."restic/repo-systems".path; paths = [ "/data/fast/music" "/data/fast/photos" "/data/fast/videos" ]; }; }; -- cgit 1.4.1