Add gamemode

This commit is contained in:
muon 2024-07-18 22:30:53 +00:00
parent 11b5d1f127
commit 189c1ebbc7
3 changed files with 12 additions and 0 deletions

View 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" ];
};
}