Move to sudo-rs

This commit is contained in:
Bun 2025-03-13 22:22:02 -04:00
parent adeb1a50ca
commit 6b3eb520d1

View file

@ -1,17 +1,7 @@
{ pkgs, ... }: { ... }:
{ {
security = { security.sudo-rs = {
sudo.enable = false; enable = true;
doas = { execWheelOnly = true;
enable = true;
extraRules = [
{ # Specify a timeout period and keep environment variables
groups = [ "wheel" ];
keepEnv = true;
persist = true;
}
];
};
}; };
environment.systemPackages = with pkgs; [ doas-sudo-shim ];
} }