FEAT: Added backlight support (closes #39)
This commit is contained in:
parent
d77e497815
commit
5e7dcd11c2
|
@ -65,6 +65,10 @@ in {
|
||||||
passwordFile = config.rekey.secrets.patrick.path;
|
passwordFile = config.rekey.secrets.patrick.path;
|
||||||
};
|
};
|
||||||
users.groups.patrick.gid = 1000;
|
users.groups.patrick.gid = 1000;
|
||||||
|
# Allow users in group video to edit backlight setting
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chgrp video $sys$devpath/brightness", RUN+="${pkgs.coreutils}/bin/chmod g+w $sys$devpath/brightness"
|
||||||
|
'';
|
||||||
|
|
||||||
rekey.secrets.root.file = ./secrets/root.passwd.age;
|
rekey.secrets.root.file = ./secrets/root.passwd.age;
|
||||||
users.users.root = {
|
users.users.root = {
|
||||||
|
|
|
@ -188,11 +188,11 @@
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-b3t2blYgmHf/HXc152Fa7+YKJSS05vRnrs8i+H6SWA8=",
|
"narHash": "sha256-b3t2blYgmHf/HXc152Fa7+YKJSS05vRnrs8i+H6SWA8=",
|
||||||
"path": "/nix/store/drv756dnldki89ms1swdc2f5q5b5286n-source/templates",
|
"path": "/nix/store/30zk66ak2dn422krhrz28igsqz03idia-source/templates",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"path": "/nix/store/drv756dnldki89ms1swdc2f5q5b5286n-source/templates",
|
"path": "/nix/store/30zk66ak2dn422krhrz28igsqz03idia-source/templates",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
arandr
|
arandr
|
||||||
feh
|
feh
|
||||||
xclip
|
xclip
|
||||||
|
acpibacklight
|
||||||
];
|
];
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
# Firefox touch support
|
# Firefox touch support
|
||||||
|
|
Loading…
Reference in a new issue