summaryrefslogtreecommitdiffstats
path: root/krebs/4lib
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-02-22 11:23:15 +0100
committerlassulus <lass@aidsballs.de>2016-02-22 11:23:15 +0100
commitb662b002204fc354b24d9a65c4126abc9c00b6db (patch)
tree36e1c992c88d592f9fe0feb0767cfc79c95a5999 /krebs/4lib
parentcfe5687ca339aa7168214dc2720576d884eff41a (diff)
parent76f1f8770d1b469d42f3f48c21208100199e17a1 (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/4lib')
-rw-r--r--krebs/4lib/types.nix7
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 {