mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add gamemode
This commit is contained in:
parent
11b5d1f127
commit
189c1ebbc7
3 changed files with 12 additions and 0 deletions
10
modules/nixos/desktop/gaming.nix
Normal file
10
modules/nixos/desktop/gaming.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
options.mods.desktop.gaming.enable =
|
||||
lib.mkEnableOption "enables entertainment programs";
|
||||
|
||||
config = lib.mkIf config.mods.desktop.gaming.enable {
|
||||
programs.gamemode.enable = true;
|
||||
users.users.${config.mods.user.name}.extraGroups =
|
||||
lib.mkAfter [ "gamemode" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue