File tree Expand file tree Collapse file tree 1 file changed +21
-16
lines changed
Expand file tree Collapse file tree 1 file changed +21
-16
lines changed Original file line number Diff line number Diff line change 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 ; [
You can’t perform that action at this time.
0 commit comments