{ lib, pkgs, config, ... }: { environment.systemPackages = with pkgs; [ git vim neovim usbutils coreutils pciutils patchelf htop ] ++ lib.optionals pkgs.stdenv.isLinux (with pkgs; [ systemd lshw dmidecode ]) ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs; [ # nothing here, yet ;) ]); programs.nix-ld = lib.mkIf pkgs.stdenv.isLinux { enable = true; 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 ]; }; environment.variables.EDITOR = "nvim"; }