FEAT: Added backlight support (closes #39)

This commit is contained in:
Patrick Großmann 2023-03-08 16:02:39 +09:00
parent d77e497815
commit 5e7dcd11c2
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
3 changed files with 7 additions and 2 deletions

View file

@ -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 = {

View file

@ -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"
} }
}, },

View file

@ -29,6 +29,7 @@
arandr arandr
feh feh
xclip xclip
acpibacklight
]; ];
sessionVariables = { sessionVariables = {
# Firefox touch support # Firefox touch support