security(sudo): Use sudo-rs instead of sudo since CVE-2025-32463

This commit is contained in:
ulic-youthlic 2025-07-02 13:57:46 +08:00
parent 9e7124071b
commit 119897a545
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 8 additions and 0 deletions

View file

@ -27,5 +27,6 @@
./wshowkeys.nix
./bash.nix
./obs.nix
./sudo-rs.nix
];
}

View file

@ -0,0 +1,7 @@
{
security.sudo-rs = {
enable = true;
execWheelOnly = true;
wheelNeedsPassword = true;
};
}