mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
16 lines
376 B
Nix
16 lines
376 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
security.sudo.wheelNeedsPassword = lib.mkForce false;
|
|
|
|
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);
|
|
};
|
|
}
|