Add nix compat using nix-ld

This commit is contained in:
GHOSCHT 2024-12-02 12:44:14 +01:00
parent 470af133c0
commit 7aa65ef8f4
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
2 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,69 @@
{
pkgs,
lib,
config,
...
}: {
services.envfs.enable = lib.mkDefault true;
programs.nix-ld.enable = lib.mkDefault true;
programs.nix-ld.libraries = with pkgs;
[
acl
attr
bzip2
dbus
expat
fontconfig
freetype
fuse3
icu
libnotify
libsodium
libssh
libunwind
libusb1
libuuid
nspr
nss
stdenv.cc.cc
util-linux
zlib
zstd
]
++ lib.optionals (config.hardware.graphics.enable) [
pipewire
cups
libxkbcommon
pango
mesa
libdrm
libglvnd
libpulseaudio
atk
cairo
alsa-lib
at-spi2-atk
at-spi2-core
gdk-pixbuf
glib
gtk3
libGL
libappindicator-gtk3
vulkan-loader
xorg.libX11
xorg.libXScrnSaver
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXrender
xorg.libXtst
xorg.libxcb
xorg.libxkbfile
xorg.libxshmfence
];
}

View file

@ -34,6 +34,7 @@
../common/optional/desktop/japanese.nix
../common/optional/udisks.nix
../common/optional/tailscale.nix
../common/optional/fhs-compat.nix
];
nixpkgs = {
@ -64,6 +65,7 @@
};
networking.hostName = "ludwig";
systemd.services.NetworkManager-wait-online.enable = false;
services.udev.packages = [pkgs.segger-jlink];