about summary refs log tree commit diff
path: root/modules/nixfiles/games/gamemode.nix
blob: a74b651e9081d2680889f612ee2e1238f2f46922 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  config,
  lib,
  ...
}:
with lib; let
  cfg = config.nixfiles.modules.games.gamemode;
in {
  options.nixfiles.modules.games.gamemode.enable =
    mkEnableOption "Whether to enable GameMode.";

  config = mkIf cfg.enable {programs.gamemode.enable = true;};
}

Consider giving Nix/NixOS a try! <3