{ config, lib, ... }: let cfg = config.nixfiles.modules.games.gamemode; in { options.nixfiles.modules.games.gamemode.enable = lib.mkEnableOption "Feral GameMode"; config = lib.mkIf cfg.enable { hm.xdg.configFile."gamemode.ini".text = lib.generators.toINI { } { general.softrealtime = "auto"; }; programs.gamemode.enable = true; }; }