krebs types.host: properly access config.krebs.users

This commit is contained in:
tv 2016-02-22 11:20:52 +01:00
parent a2b8eb7550
commit 76f1f8770d

View File

@ -4,6 +4,11 @@ with builtins;
with lib; with lib;
with types; with types;
let
# Inherited attributes are used in submodules that have their own `config`.
inherit (config.krebs) users;
in
types // rec { types // rec {
host = submodule ({ config, ... }: { host = submodule ({ config, ... }: {
@ -22,7 +27,7 @@ types // rec {
owner = mkOption { owner = mkOption {
type = user; type = user;
default = config.krebs.users.krebs; default = users.krebs;
}; };
extraZones = mkOption { extraZones = mkOption {