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

6 lines
138 B
Nix

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