nixos-config/common/components/security.nix
2024-04-22 21:01:29 +02:00

5 lines
137 B
Nix

{
# sudo and nix can only be used by the wheel group
nix.settings.allowed-users = ["@wheel"];
security.sudo.execWheelOnly = true;
}