From eed53728bb43d34552a7ac338419054ed754088c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 5 Jul 2023 17:29:31 +0200 Subject: [PATCH] add lutris --- hosts/sopp/default.nix | 1 + profiles/desktop/lutris.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 profiles/desktop/lutris.nix diff --git a/hosts/sopp/default.nix b/hosts/sopp/default.nix index 48c9e71..916c0fb 100644 --- a/hosts/sopp/default.nix +++ b/hosts/sopp/default.nix @@ -46,6 +46,7 @@ ../../profiles/desktop/sound/pipewire.nix ../../profiles/desktop/steam.nix + ../../profiles/desktop/lutris.nix ../../profiles/desktop/flatpak.nix ../../profiles/remote-builders diff --git a/profiles/desktop/lutris.nix b/profiles/desktop/lutris.nix new file mode 100644 index 0000000..4c58817 --- /dev/null +++ b/profiles/desktop/lutris.nix @@ -0,0 +1,31 @@ +{ config, pkgs, lib, ... }: +{ + + # TODO: gamemode? + + #services.joycond.enable = true; + + environment.systemPackages = with pkgs; [ + (lutris.override { + extraPkgs = pkgs: [ + ]; + extraLibraries = pkgs: [ + ]; + }) + + # ensure icons appear + gnome3.adwaita-icon-theme + hicolor-icon-theme # + + # Needed for some installers like League of Legends + openssl + gnome.zenity + + ]; + + hardware.opengl.enable = true; + hardware.opengl.driSupport = true; + hardware.opengl.driSupport32Bit = true; + hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ]; + +}