aboutsummaryrefslogtreecommitdiffstats
path: root/modules/nixos/common.nix
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <tom@vanderlee.com>2026-09-24 20:22:57 +0200
committerGravatar Tom van der Lee <tom@vanderlee.com>2026-09-24 20:22:57 +0200
commit1f266cfa4048d5c71b39e3f458aa5f1cfa348579 (patch)
tree50510e273156e65adf4f57870517ef28940ad181 /modules/nixos/common.nix
parentb0c5452e3bb1e3bdbb27181e331fc959fa43f4fc (diff)
downloaddesktop-flake-1f266cfa4048d5c71b39e3f458aa5f1cfa348579.tar.gz
desktop-flake-1f266cfa4048d5c71b39e3f458aa5f1cfa348579.tar.bz2
desktop-flake-1f266cfa4048d5c71b39e3f458aa5f1cfa348579.zip
Enable nix-ld so uv-managed prebuilt binaries run on NixOS
uv fetches prebuilt CPython interpreters and native wheel extensions that expect a standard glibc loader path, which doesn't exist on NixOS without nix-ld. Enables it unconditionally on every NixOS host and extends its library set with common CPython native-extension dependencies not already covered by nix-ld's own defaults. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'modules/nixos/common.nix')
-rw-r--r--modules/nixos/common.nix15
1 files changed, 15 insertions, 0 deletions
diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix
index 919e2f0..7a79d93 100644
--- a/modules/nixos/common.nix
+++ b/modules/nixos/common.nix
@@ -87,4 +87,19 @@
87 # tom's docker group membership is root-equivalent access, accepted here 87 # tom's docker group membership is root-equivalent access, accepted here
88 # for reliability over the rootless isolation guarantee. 88 # for reliability over the rootless isolation guarantee.
89 virtualisation.docker.enable = true; 89 virtualisation.docker.enable = true;
90
91 # Lets prebuilt, foreign dynamically-linked binaries run on NixOS - needed
92 # for uv-managed prebuilt Python interpreters and native wheel extensions,
93 # which expect a standard (non-NixOS) dynamic loader path. The libraries
94 # below extend nix-ld's own baseline (zlib, openssl, bzip2, etc.) with
95 # common CPython build dependencies it doesn't already include.
96 programs.nix-ld.enable = true;
97 programs.nix-ld.libraries = with pkgs; [
98 ncurses
99 libffi
100 sqlite
101 readline
102 gdbm
103 expat
104 ];
90} 105}