summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/backup.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-06 18:54:01 +0100
committertv <tv@krebsco.de>2016-02-06 18:54:01 +0100
commit29746aec06b7d42d3c87245f6f14f048234251e4 (patch)
tree2b999fc70077f40331665ef39b8a0f7c5d225910 /krebs/3modules/backup.nix
parentc784d271c5dc8783e5e6308baf4f6dd26430bfca (diff)
krebs.{backup.plans,hosts,users}.*.name: add default value
Diffstat (limited to 'krebs/3modules/backup.nix')
-rw-r--r--krebs/3modules/backup.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/krebs/3modules/backup.nix b/krebs/3modules/backup.nix
index a1f335905..17d8a3c98 100644
--- a/krebs/3modules/backup.nix
+++ b/krebs/3modules/backup.nix
@@ -12,7 +12,7 @@ let
enable = mkEnableOption "krebs.backup" // { default = true; };
plans = mkOption {
default = {};
- type = types.attrsOf (types.submodule ({
+ type = types.attrsOf (types.submodule ({ config, ... }: {
# TODO enable = mkEnableOption "TODO" // { default = true; };
options = {
method = mkOption {
@@ -20,6 +20,7 @@ let
};
name = mkOption {
type = types.str;
+ default = config._module.args.name;
};
src = mkOption {
type = types.krebs.file-location;