mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Desktop/Games] Allow starting gamemoderun without sudo
This commit is contained in:
parent
7e9048b5a1
commit
a0a3fdf5dc
1 changed files with 11 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue