profiles/desktop: update nix-ld libraries list

This commit is contained in:
Gabriel Arazas 2023-12-24 18:18:23 +08:00
parent 06c30c967b
commit 55b475b6f0
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -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.