Skip to content

Commit a81db8f

Browse files
committed
sudo with bell
1 parent 8ab47fc commit a81db8f

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

hosts/common/laptops.nix

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,27 @@
5858
security = {
5959
pam.services.swaylock = {};
6060
rtkit.enable = true;
61-
sudo.extraRules = [
62-
{
63-
# needed for setting external monitor brightness
64-
groups = ["wheel"];
65-
commands = [
66-
{
67-
command = "/run/current-system/sw/bin/ddcutil";
68-
options = ["NOPASSWD"];
69-
}
70-
{
71-
command = "/run/current-system/sw/bin/k3s";
72-
options = ["NOPASSWD"];
73-
}
74-
];
75-
}
76-
];
61+
sudo = {
62+
extraConfig = ''
63+
Defaults passprompt="[sudo] password for %p: "
64+
'';
65+
extraRules = [
66+
{
67+
groups = ["wheel"];
68+
commands = [
69+
{
70+
# needed for setting external monitor brightness
71+
command = "/run/current-system/sw/bin/ddcutil";
72+
options = ["NOPASSWD"];
73+
}
74+
{
75+
command = "/run/current-system/sw/bin/k3s";
76+
options = ["NOPASSWD"];
77+
}
78+
];
79+
}
80+
];
81+
};
7782
};
7883

7984
environment.systemPackages = with pkgs; [

0 commit comments

Comments
 (0)