mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 16:17:46 +00:00
10 lines
316 B
Nix
10 lines
316 B
Nix
{ 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" ];
|
|
};
|
|
}
|