From a64e999255638c9a0ae5b7c104d80ac3201b1bc5 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 5 Oct 2019 18:02:48 +0200 Subject: Move gaming packages to user --- system/modules/gaming.nix | 42 +----------------------------------------- user/modules/gaming.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ user/prefect.nix | 1 + 3 files changed, 47 insertions(+), 41 deletions(-) create mode 100644 user/modules/gaming.nix 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 -- cgit 1.4.1