From 35d1888bbd9df9fc41f18f7fe3c4b3a8d9fcb4bc Mon Sep 17 00:00:00 2001 From: Paul-Henri Froidmont Date: Sun, 8 Mar 2020 18:13:32 +0100 Subject: [PATCH] Move games related config to a dedicated file --- configs/games.nix | 11 +++++++++++ configs/gui.nix | 9 ++++----- configs/system.nix | 1 - hosts/nixos-desktop/configuration.nix | 1 + 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 configs/games.nix diff --git a/configs/games.nix b/configs/games.nix new file mode 100644 index 0000000..bd9df7a --- /dev/null +++ b/configs/games.nix @@ -0,0 +1,11 @@ +{ config, lib, pkgs, ... }: +{ + hardware.opengl.driSupport32Bit = true; + home-manager.users.froidmpa = {pkgs, config, ...}: { + home.packages = with pkgs; [ + steam + lutris + vulkan-tools + ]; + }; +} diff --git a/configs/gui.nix b/configs/gui.nix index 007698a..c227814 100644 --- a/configs/gui.nix +++ b/configs/gui.nix @@ -11,7 +11,6 @@ keepassxc krita riot-desktop - steam mpv mumble libreoffice-fresh @@ -20,10 +19,10 @@ enable = true; extensions = with pkgs.nur.repos.rycee.firefox-addons; [ keepassxc-browser - ublock-origin - umatrix - cookie-autodelete - dark-night-mode + ublock-origin + umatrix + cookie-autodelete + dark-night-mode ]; }; diff --git a/configs/system.nix b/configs/system.nix index a85ea85..b9c16a9 100644 --- a/configs/system.nix +++ b/configs/system.nix @@ -30,7 +30,6 @@ sound.enable = true; hardware.pulseaudio.enable = true; - hardware.opengl.driSupport32Bit = true; hardware.pulseaudio.support32Bit = true; users.users.froidmpa = { diff --git a/hosts/nixos-desktop/configuration.nix b/hosts/nixos-desktop/configuration.nix index 5775c97..b3c4d42 100644 --- a/hosts/nixos-desktop/configuration.nix +++ b/hosts/nixos-desktop/configuration.nix @@ -4,6 +4,7 @@ ./hardware-configuration.nix ../../configs/system.nix ../../configs/user.nix + ../../configs/games.nix ]; fileSystems."/home/froidmpa/Nextcloud" = {