mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-16 14:39:23 +03:00
Remove abuse of "with"
This commit is contained in:
parent
68872f81cf
commit
eda051cff5
1 changed files with 4 additions and 4 deletions
|
@ -65,7 +65,7 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
authKeysFiles = with {
|
authKeysFiles = let
|
||||||
mkAuthKeyFile = u: {
|
mkAuthKeyFile = u: {
|
||||||
target = "ssh/authorized_keys.d/${u.name}";
|
target = "ssh/authorized_keys.d/${u.name}";
|
||||||
mode = "0444";
|
mode = "0444";
|
||||||
|
@ -77,7 +77,7 @@ let
|
||||||
usersWithKeys = attrValues (flip filterAttrs config.users.extraUsers (n: u:
|
usersWithKeys = attrValues (flip filterAttrs config.users.extraUsers (n: u:
|
||||||
length u.openssh.authorizedKeys.keys != 0 || length u.openssh.authorizedKeys.keyFiles != 0
|
length u.openssh.authorizedKeys.keys != 0 || length u.openssh.authorizedKeys.keyFiles != 0
|
||||||
));
|
));
|
||||||
}; map mkAuthKeyFile usersWithKeys;
|
in map mkAuthKeyFile usersWithKeys;
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue