From: Ismaƫl Bouya Date: Wed, 11 Dec 2019 23:24:23 +0000 (+0100) Subject: Add specification for the private config file as a module. X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fe07eb2fa73354139a347f50857db991edca34f8;p=perso%2FImmae%2FConfig%2FNix%2FNUR.git Add specification for the private config file as a module. --- 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 = {