nixos: core: use sudo-rs

This commit is contained in:
Guanran Wang 2023-12-25 21:03:49 +08:00
parent cadeefb081
commit fa0e9ccc74
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -8,7 +8,8 @@
environment.etc.machine-id.text = "b08dfa6083e7567a1921a715000001fb"; # whonix id environment.etc.machine-id.text = "b08dfa6083e7567a1921a715000001fb"; # whonix id
security.apparmor.enable = true; security.apparmor.enable = true;
security.sudo.execWheelOnly = true; security.sudo-rs.enable = true;
security.sudo-rs.execWheelOnly = true;
boot.blacklistedKernelModules = [ boot.blacklistedKernelModules = [
# Obscure network protocols # Obscure network protocols