summaryrefslogtreecommitdiffstats
path: root/krebs/4lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-22 11:20:52 +0100
committertv <tv@krebsco.de>2016-02-22 11:20:52 +0100
commit76f1f8770d1b469d42f3f48c21208100199e17a1 (patch)
treea5fbdb137ef2e7622a517306b05fe8b5b6aedb80 /krebs/4lib
parenta2b8eb75506fa27bc3d44f6a33d860ce7d3470e0 (diff)
krebs types.host: properly access config.krebs.users
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 {