diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-10 14:44:33 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-10 14:44:33 -0700 |
commit | 6a5cb9b7544168e7136ab2dbd833c9fc63020db7 (patch) | |
tree | 88db9fe9f436648acba60ffea98fd47942343b74 /hosts/tahoe | |
parent | add a module for backup with restic (diff) | |
download | world-6a5cb9b7544168e7136ab2dbd833c9fc63020db7.tar.gz |
secrets: move all the secrets under module/
Refactor a bit the configuration, which should simplify the management and usage of secrets from now on.
Diffstat (limited to 'hosts/tahoe')
-rw-r--r-- | hosts/tahoe/services.nix | 6 |
1 files changed, 3 insertions, 3 deletions
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" ]; }; }; |