From ddb42b131a41c132821024b53ac56061a8f84ffa Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Mon, 1 Dec 2025 16:40:48 +0530 Subject: [PATCH] fix(ryu): remove openrazer group and add gamemode group for user --- nixos/ryu/configuration.nix | 2 +- nixos/ryu/programs/gamemode.nix | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nixos/ryu/configuration.nix b/nixos/ryu/configuration.nix index 5632e016..3e1eaa2e 100644 --- a/nixos/ryu/configuration.nix +++ b/nixos/ryu/configuration.nix @@ -79,7 +79,7 @@ users.users.${device.user} = { isNormalUser = true; - extraGroups = ["wheel" "audio" "i2c" "media" "openrazer" "video" "tss"]; + extraGroups = ["wheel" "audio" "i2c" "media" "video" "tss"]; openssh.authorizedKeys.keyFiles = [ ../../secrets/id_ed25519.pub ../../secrets/id_ios.pub diff --git a/nixos/ryu/programs/gamemode.nix b/nixos/ryu/programs/gamemode.nix index 976173e8..94f49b5a 100644 --- a/nixos/ryu/programs/gamemode.nix +++ b/nixos/ryu/programs/gamemode.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + pkgs, + device, + ... +}: { programs.gamemode = { enable = true; settings = { @@ -16,4 +20,5 @@ }; }; }; + users.users.${device.user}.extraGroups = ["gamemode"]; }