nixos-config/common/components/security.nix

12 lines
210 B
Nix
Raw Permalink Normal View History

2024-04-22 21:01:29 +02:00
{
# sudo and nix can only be used by the wheel group
2024-04-23 16:19:33 +02:00
2024-04-22 21:01:29 +02:00
nix.settings.allowed-users = ["@wheel"];
2024-04-23 16:19:33 +02:00
security.sudo = {
enable = true;
execWheelOnly = true;
extraConfig = "Defaults insults";
};
2024-04-22 21:24:54 +02:00
}