infrastructure/config/users/default.nix
2021-03-02 22:32:02 +00:00

14 lines
314 B
Nix

{ 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);
};
}