diff --git a/configuration.nix b/configuration.nix index 5276b29..4a3ca20 100644 --- a/configuration.nix +++ b/configuration.nix @@ -65,6 +65,10 @@ in { passwordFile = config.rekey.secrets.patrick.path; }; 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; users.users.root = { diff --git a/flake.lock b/flake.lock index cd32bc8..b7dce6f 100644 --- a/flake.lock +++ b/flake.lock @@ -188,11 +188,11 @@ "locked": { "lastModified": 1, "narHash": "sha256-b3t2blYgmHf/HXc152Fa7+YKJSS05vRnrs8i+H6SWA8=", - "path": "/nix/store/drv756dnldki89ms1swdc2f5q5b5286n-source/templates", + "path": "/nix/store/30zk66ak2dn422krhrz28igsqz03idia-source/templates", "type": "path" }, "original": { - "path": "/nix/store/drv756dnldki89ms1swdc2f5q5b5286n-source/templates", + "path": "/nix/store/30zk66ak2dn422krhrz28igsqz03idia-source/templates", "type": "path" } }, diff --git a/users/patrick.nix b/users/patrick.nix index 4455c9b..80951d4 100644 --- a/users/patrick.nix +++ b/users/patrick.nix @@ -29,6 +29,7 @@ arandr feh xclip + acpibacklight ]; sessionVariables = { # Firefox touch support