about summary refs log tree commit diff
path: root/modules/nixos/games
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/nixos/games/gamemode.nix8
-rw-r--r--modules/nixos/games/lutris.nix10
2 files changed, 8 insertions, 10 deletions
diff --git a/modules/nixos/games/gamemode.nix b/modules/nixos/games/gamemode.nix
index 051d12e..193a764 100644
--- a/modules/nixos/games/gamemode.nix
+++ b/modules/nixos/games/gamemode.nix
@@ -9,5 +9,11 @@ in {
   options.nixfiles.modules.games.gamemode.enable =
     mkEnableOption "Feral GameMode";
 
-  config = mkIf cfg.enable {programs.gamemode.enable = true;};
+  config = mkIf cfg.enable {
+    hm.xdg.configFile."gamemode.ini".text = generators.toINI {} {
+      general.softrealtime = "auto";
+    };
+
+    programs.gamemode.enable = true;
+  };
 }
diff --git a/modules/nixos/games/lutris.nix b/modules/nixos/games/lutris.nix
index 2737953..ad1e43e 100644
--- a/modules/nixos/games/lutris.nix
+++ b/modules/nixos/games/lutris.nix
@@ -17,15 +17,7 @@ in {
     };
 
     hm.home.packages = with pkgs; [
-      (lutris.override {
-        lutris-unwrapped = lutris-unwrapped.override {
-          wine = buildFHSUserEnv {
-            # We don't really need Wine because Lutris downloads a required
-            # runtime for us.
-            name = "empty";
-          };
-        };
-      })
+      lutris
       vkBasalt
       winetricks
     ];

Consider giving Nix/NixOS a try! <3