summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--system/modules/gaming.nix42
-rw-r--r--user/modules/gaming.nix45
-rw-r--r--user/prefect.nix1
3 files changed, 47 insertions, 41 deletions
diff --git a/system/modules/gaming.nix b/system/modules/gaming.nix
index 44b937a8..0dbc5b12 100644
--- a/system/modules/gaming.nix
+++ b/system/modules/gaming.nix
@@ -1,46 +1,6 @@
 { config, pkgs, ... }:
 
-{ environment.systemPackages = with pkgs; [
-    unstable.steam
-    (
-      unstable.winePackages.unstable.override {
-        pngSupport = true;
-        jpegSupport = true;
-        tiffSupport = true;
-        gettextSupport = true;
-        fontconfigSupport = true;
-        alsaSupport = true;
-        gtkSupport = true;
-        openglSupport = true;
-        tlsSupport = true;
-        gstreamerSupport = true;
-        cupsSupport = true;
-        colorManagementSupport = true;
-        dbusSupport = true;
-        mpg123Support = true;
-        openalSupport = true;
-        openclSupport = true;
-        cairoSupport = true;
-        odbcSupport = true;
-        netapiSupport = true;
-        cursesSupport = true;
-        vaSupport = true;
-        pcapSupport = true;
-        v4lSupport = true;
-        saneSupport = true;
-        gsmSupport = true;
-        gphoto2Support = true;
-        ldapSupport = true;
-        pulseaudioSupport = true;
-        udevSupport = true;
-        xineramaSupport = true;
-        xmlSupport = true;
-        vulkanSupport = true;
-        sdlSupport = true;
-      }
-    )
-    unstable.lutris
-  ];
+{
   hardware.steam-hardware.enable = true;
   hardware.opengl.driSupport32Bit = true;
   hardware.pulseaudio.support32Bit = true;
diff --git a/user/modules/gaming.nix b/user/modules/gaming.nix
new file mode 100644
index 00000000..022846ca
--- /dev/null
+++ b/user/modules/gaming.nix
@@ -0,0 +1,45 @@
+{ config, pkgs, ... }:
+
+{
+  home.packages = with pkgs; [
+    unstable.steam
+    (
+      unstable.winePackages.unstable.override {
+        pngSupport = true;
+        jpegSupport = true;
+        tiffSupport = true;
+        gettextSupport = true;
+        fontconfigSupport = true;
+        alsaSupport = true;
+        gtkSupport = true;
+        openglSupport = true;
+        tlsSupport = true;
+        gstreamerSupport = true;
+        cupsSupport = true;
+        colorManagementSupport = true;
+        dbusSupport = true;
+        mpg123Support = true;
+        openalSupport = true;
+        openclSupport = true;
+        cairoSupport = true;
+        odbcSupport = true;
+        netapiSupport = true;
+        cursesSupport = true;
+        vaSupport = true;
+        pcapSupport = true;
+        v4lSupport = true;
+        saneSupport = true;
+        gsmSupport = true;
+        gphoto2Support = true;
+        ldapSupport = true;
+        pulseaudioSupport = true;
+        udevSupport = true;
+        xineramaSupport = true;
+        xmlSupport = true;
+        vulkanSupport = true;
+        sdlSupport = true;
+      }
+    )
+    unstable.lutris
+  ];
+}
diff --git a/user/prefect.nix b/user/prefect.nix
index 0e0a3a1f..66fb499d 100644
--- a/user/prefect.nix
+++ b/user/prefect.nix
@@ -7,6 +7,7 @@
     ./modules/emacs.nix
     ./modules/development/base.nix
     ./modules/development/lisp.nix
+    ./modules/gaming.nix
     ./modules/git.nix
     ./modules/gnupg.nix
     ./modules/i3.nix