diff options
author | lassulus <lass@aidsballs.de> | 2016-02-22 11:23:15 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-02-22 11:23:15 +0100 |
commit | b662b002204fc354b24d9a65c4126abc9c00b6db (patch) | |
tree | 36e1c992c88d592f9fe0feb0767cfc79c95a5999 /krebs | |
parent | cfe5687ca339aa7168214dc2720576d884eff41a (diff) | |
parent | 76f1f8770d1b469d42f3f48c21208100199e17a1 (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/4lib/types.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix index fcb6ff3d3..839a1a923 100644 --- a/krebs/4lib/types.nix +++ b/krebs/4lib/types.nix @@ -4,6 +4,11 @@ with builtins; with lib; with types; +let + # Inherited attributes are used in submodules that have their own `config`. + inherit (config.krebs) users; +in + types // rec { host = submodule ({ config, ... }: { @@ -22,7 +27,7 @@ types // rec { owner = mkOption { type = user; - default = config.krebs.users.krebs; + default = users.krebs; }; extraZones = mkOption { |