From 55b475b6f0c076d449017a291f303c39d1682c7c Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sun, 24 Dec 2023 18:18:23 +0800 Subject: [PATCH] profiles/desktop: update nix-ld libraries list --- modules/nixos/profiles/desktop.nix | 38 ++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/modules/nixos/profiles/desktop.nix b/modules/nixos/profiles/desktop.nix index 0b3ee576..06c13db5 100644 --- a/modules/nixos/profiles/desktop.nix +++ b/modules/nixos/profiles/desktop.nix @@ -1,7 +1,7 @@ # This is where extra desktop goodies can be found. # As a note, this is not where you set the aesthetics of your graphical sessions. # That can be found in the `themes` module. -{ config, lib, pkgs, ... }: +{ config, lib, pkgs, options, ... }: let cfg = config.profiles.desktop; in { @@ -65,7 +65,41 @@ in { fonts.fontconfig.enable = true; # Run unpatched binaries with these! - programs.nix-ld.enable = true; + programs.nix-ld = { + enable = true; + libraries = let + xorgLibs = with pkgs.xorg; [ + libX11 + libXScrnSaver + libXcomposite + libXcursor + libXdamage + libXext + libXfixes + libXi + libXrandr + libXrender + libXtst + libxcb + libxkbfile + libxshmfence + ]; + commonLibs = with pkgs; [ + alsa-lib + cairo + freetype + dbus + icu + libGL + libnotify + mesa + nss + pango + pipewire + ]; + in + commonLibs ++ xorgLibs ++ options.programs.nix-ld.libraries.default; + }; environment.systemPackages = with pkgs; [ steam-run # For the heathens that still uses FHS.