diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-12-12 00:24:23 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-04-25 00:04:35 +0200 |
commit | fe07eb2fa73354139a347f50857db991edca34f8 (patch) | |
tree | 8a9d22532a9b95cc2141eed8d4b1a62bfee69a0a /modules | |
parent | 7c9b33a81933c1595189695ee51639a475fb3c3e (diff) | |
download | NUR-fe07eb2fa73354139a347f50857db991edca34f8.tar.gz NUR-fe07eb2fa73354139a347f50857db991edca34f8.tar.zst NUR-fe07eb2fa73354139a347f50857db991edca34f8.zip |
Add specification for the private config file as a module.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/duply_backup/default.nix | 4 | ||||
-rw-r--r-- | modules/rsync_backup/default.nix | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/duply_backup/default.nix b/modules/duply_backup/default.nix index 32fa9414..89313789 100644 --- a/modules/duply_backup/default.nix +++ b/modules/duply_backup/default.nix | |||
@@ -1,7 +1,7 @@ | |||
1 | { lib, pkgs, myconfig, config, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | 2 | ||
3 | let | 3 | let |
4 | cfg = myconfig.env.backup; | 4 | cfg = config.myEnv.backup; |
5 | varDir = "/var/lib/duply"; | 5 | varDir = "/var/lib/duply"; |
6 | duplyProfile = profile: prefix: '' | 6 | duplyProfile = profile: prefix: '' |
7 | GPG_PW="${cfg.password}" | 7 | GPG_PW="${cfg.password}" |
diff --git a/modules/rsync_backup/default.nix b/modules/rsync_backup/default.nix index 05177c80..dadf5e7c 100644 --- a/modules/rsync_backup/default.nix +++ b/modules/rsync_backup/default.nix | |||
@@ -1,4 +1,4 @@ | |||
1 | { lib, pkgs, config, myconfig, ... }: | 1 | { lib, pkgs, config, ... }: |
2 | let | 2 | let |
3 | partModule = lib.types.submodule { | 3 | partModule = lib.types.submodule { |
4 | options = { | 4 | options = { |