krebs types.host: properly access config.krebs.users
This commit is contained in:
parent
a2b8eb7550
commit
76f1f8770d
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user