replace sudo -> sudo-rs

This commit is contained in:
do butterflies cry? 2026-03-07 23:44:03 +10:00
parent 39ccbbd2ed
commit 29410d8ff9
Signed by: cry
GPG key ID: F68745A836CA0412
4 changed files with 6 additions and 12 deletions

View file

@ -7,9 +7,10 @@
./modules/flatpak.nix
];
# NOTE: mkDefault is 1000 and mkForce is 50
# NOTE: so this is like a second mkDefault
security.sudo.wheelNeedsPassword = true;
security.sudo-rs = {
enable = true;
wheelNeedsPassword = lib.mkOverride 200 true;
};
networking = {
networkmanager.enable = true;

View file

@ -86,10 +86,7 @@
};
};
security = {
rtkit.enable = true; # I *think* this is for pipewire
sudo.wheelNeedsPassword = lib.mkDefault true;
};
security.rtkit.enable = true; # I *think* this is for pipewire
# ---- ENVIRONMENT VARIABLES ----
environment = {

View file

@ -19,10 +19,6 @@
defaults.email = "eclarkboman@gmail.com";
};
sudo = {
enable = true;
wheelNeedsPassword = true;
};
# allow SSH keys for passwordless auth
pam = {
sshAgentAuth.enable = true;

View file

@ -46,7 +46,7 @@
};
};
security.sudo.wheelNeedsPassword = lib.mkForce false;
security.sudo-rs.wheelNeedsPassword = lib.mkForce false;
# ---- SYSTEM PACKAGES -----
environment.systemPackages = with pkgs; [