From fe07eb2fa73354139a347f50857db991edca34f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 12 Dec 2019 00:24:23 +0100 Subject: Add specification for the private config file as a module. --- modules/duply_backup/default.nix | 4 ++-- modules/rsync_backup/default.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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 @@ -{ lib, pkgs, myconfig, config, ... }: +{ lib, pkgs, config, ... }: let - cfg = myconfig.env.backup; + cfg = config.myEnv.backup; varDir = "/var/lib/duply"; duplyProfile = profile: prefix: '' 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 @@ -{ lib, pkgs, config, myconfig, ... }: +{ lib, pkgs, config, ... }: let partModule = lib.types.submodule { options = { -- cgit v1.2.3