diff --git a/hosts/thinkpad/hardware.nix b/hosts/thinkpad/hardware.nix index a4acb48..8f50c05 100644 --- a/hosts/thinkpad/hardware.nix +++ b/hosts/thinkpad/hardware.nix @@ -35,6 +35,7 @@ services.udev.extraRules = '' SUBSYSTEM=="video4linux", ATTRS{interface}=="Integrated IR Camera", ATTR{index}=="0", SYMLINK+="video-ir" + KERNEL=="uinput", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput" ''; services.howdy = { diff --git a/system/security/default.nix b/system/security/default.nix index 9979d01..296bfa5 100644 --- a/system/security/default.nix +++ b/system/security/default.nix @@ -18,4 +18,9 @@ tctiEnvironment.enable = true; }; }; + + + services.udev.extraRules = '' + KERNEL=="uinput", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput" + ''; } diff --git a/system/security/users.nix b/system/security/users.nix index c9f4f8f..ed3967e 100644 --- a/system/security/users.nix +++ b/system/security/users.nix @@ -2,6 +2,7 @@ { users.groups.jashton = {}; + users.groups.greetd = {}; users.users.jashton = { isNormalUser = true; description = "Josh Ashton"; @@ -14,4 +15,10 @@ users.users.root = { shell = pkgs.zsh; }; + + users.extraUsers.greetd = { + isSystemUser = true; + group = "greetd"; + extraGroups = [ "input" ]; + }; }