pantheon/nix/modules/system/sudo.nix

11 lines
247 B
Nix

{ config, ... }:
let
cfg = config.flake;
in
{
flake.modules.nixos.default = {
security.sudo.wheelNeedsPassword = false;
nix.settings.trusted-users = [ "@wheel" ];
users.users.${cfg.admin.username}.extraGroups = [ "wheel" ];
};
}