This commit is contained in:
2026-01-08 19:13:42 +09:00
parent dece224b2a
commit 6995ae2461
4 changed files with 33 additions and 21 deletions

View File

@@ -49,13 +49,23 @@ in {
security.sudo = {
enable = true;
extraRules = [{
commands = [{
command = "${pkgs.grub2}/bin/grub-reboot";
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}];
extraRules = [
{
users = ["allen"];
commands = [{
command = "/run/current-system/sw/bin/systemctl reboot --force";
options = [ "NOPASSWD" ];
}];
}
{
commands = [{
command = "${pkgs.grub2}/bin/grub-reboot";
options = [ "NOPASSWD" ];
}];
groups = [ "wheel" ];
}
];
};
security.pam.loginLimits = [
@@ -136,7 +146,6 @@ in {
gnome-tweaks
xf86_input_wacom
glfw
wacomtablet
libimobiledevice
ifuse
git
@@ -170,3 +179,5 @@ in {
system.stateVersion = "25.05"; # Did you read the comment?
}