From 34fa25d4637d7c09f0168f12d359845e89b0c97a Mon Sep 17 00:00:00 2001 From: tristan Date: Fri, 22 Nov 2024 18:09:06 +0000 Subject: [PATCH] zenix: fix audio group and add gamescope capsysnice --- nixos/programs/gamer.nix | 6 +++++- nixos/services/musnix.nix | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/nixos/programs/gamer.nix b/nixos/programs/gamer.nix index 6558ddb..245761f 100644 --- a/nixos/programs/gamer.nix +++ b/nixos/programs/gamer.nix @@ -21,9 +21,13 @@ dedicatedServer.openFirewall = true; gamescopeSession = { enable = true; - args = ["-r" "144" "-O" "DP-1"]; + args = ["-r" "144" "-O" "DP-1" "--rt"]; }; }; + programs.gamescope = { + enable = true; + capSysNice = true; + }; programs.gamemode.enable = true; services.monado.enable = true; systemd.user.services.monado.environment = { diff --git a/nixos/services/musnix.nix b/nixos/services/musnix.nix index ed3b7c1..ce62cd6 100644 --- a/nixos/services/musnix.nix +++ b/nixos/services/musnix.nix @@ -1,5 +1,5 @@ { inputs, user, ... }: { imports = [inputs.musnix.nixosModules.musnix]; - users.users.${user}.extraGroups = ["music"]; + users.users.${user}.extraGroups = ["audio"]; musnix.enable = true; }