[Desktop/Games] Allow starting gamemoderun without sudo

This commit is contained in:
Antoine Viallon 2023-02-27 19:46:03 +01:00
parent 7e9048b5a1
commit a0a3fdf5dc
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -43,6 +43,17 @@ in {
};
enable = true;
};
security.wrappers = {
gamemoderun = {
source = "${pkgs.gamemode}/bin/gamemoderun";
owner = "root";
group = "gamers";
capabilities = "cap_sys_nice=eip";
permissions = "u+rx,g+x,o=";
};
};
users.groups.gamers = { };
programs.steam.enable = !generalCfg.minimal;
hardware.steam-hardware.enable = !generalCfg.minimal;