Cleanliness.

This commit is contained in:
kat witch 2021-03-01 21:06:02 +00:00
parent 200fd473af
commit 450fc6981a
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
2 changed files with 14 additions and 11 deletions

View file

@ -1,5 +1,9 @@
{ ... }:
{ pkgs, config, ... }:
{
imports = [ ./kat ];
users.users.root = {
openssh.authorizedKeys.keys = with pkgs.lib; concatLists (mapAttrsToList (name: user: if elem "wheel" user.extraGroups then user.openssh.authorizedKeys.keys else []) config.users.users);
};
}