diff --git a/hosts/perso-desktop/default.nix b/hosts/perso-desktop/default.nix index 51ef4f0..38dddcd 100644 --- a/hosts/perso-desktop/default.nix +++ b/hosts/perso-desktop/default.nix @@ -15,6 +15,7 @@ ../../modules/keymaps/us.nix ../../modules/bluetooth.nix ../../modules/pipewire.nix + ../../modules/nix-ld.nix # Include the results of the hardware scan. ./hardware-configuration.nix diff --git a/modules/nix-ld.nix b/modules/nix-ld.nix new file mode 100644 index 0000000..807f62d --- /dev/null +++ b/modules/nix-ld.nix @@ -0,0 +1,28 @@ +{ config, pkgs, ... }: { + # Enable nix ld + programs.nix-ld.enable = true; + + programs.nix-ld.package = pkgs.nix-ld-rs; + + # Sets up all the libraries to load + programs.nix-ld.libraries = with pkgs; [ + zlib + zstd + stdenv.cc.cc + curl + openssl + attr + libssh + bzip2 + libxml2 + acl + libsodium + util-linux + xz + systemd + fuse3 + icu + nss + expat + ]; +}