forked from fediversity/fediversity
properly flatten out application layer at users.users
This commit is contained in:
parent
4a7b9f0f72
commit
55546b50b1
1 changed files with 9 additions and 2 deletions
|
|
@ -128,8 +128,15 @@ in
|
||||||
resources.shell.login-shell.username = "operator";
|
resources.shell.login-shell.username = "operator";
|
||||||
implementation = requests: {
|
implementation = requests: {
|
||||||
_class = "nixos";
|
_class = "nixos";
|
||||||
users.users = config.resources.login-shell.policy.apply (
|
users.users = (
|
||||||
lib.filterAttrs (_name: value: value ? login-shell) requests
|
config.resources.login-shell.policy.apply (
|
||||||
|
lib.concatMapAttrs (
|
||||||
|
_application: resources:
|
||||||
|
lib.mapAttrs (_k: lib.getAttr "login-shell") (
|
||||||
|
lib.filterAttrs (_name: value: value ? login-shell) resources
|
||||||
|
)
|
||||||
|
) requests
|
||||||
|
)
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue