diff options
author | tv <tv@krebsco.de> | 2016-02-06 15:11:30 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-02-06 15:11:30 +0100 |
commit | 23c7c10f5a5ed83dca001d7382e5b89981277f8c (patch) | |
tree | 274a199ba7748892a7dfd4cd5f31b0f83985b206 /krebs | |
parent | b2303e081fb1ccc9a0b88f538736045fb2fba14f (diff) |
krebs.retiolum.hosts: change type to attrsOf host
Diffstat (limited to 'krebs')
131 files changed, 32 insertions, 1476 deletions
diff --git a/krebs/3modules/retiolum.nix b/krebs/3modules/retiolum.nix index e0e2692a8..08ac96461 100644 --- a/krebs/3modules/retiolum.nix +++ b/krebs/3modules/retiolum.nix @@ -1,6 +1,4 @@ { config, pkgs, lib, ... }: - -with builtins; with lib; let cfg = config.krebs.retiolum; @@ -40,7 +38,7 @@ let ''; }; - network = mkOption { + netname = mkOption { type = types.str; default = "retiolum"; description = '' @@ -65,10 +63,13 @@ let }; hosts = mkOption { - type = with types; either package path; - default = ../Zhosts; + type = with types; attrsOf host; + default = + filterAttrs (_: h: hasAttr cfg.netname h.nets) config.krebs.ho |