From 406b50b522b74c0f5d8e4138b75c577a0a265344 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Tue, 16 Jan 2024 23:02:05 -0600 Subject: [PATCH] Set NIX_LD globally --- home/xonsh.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/xonsh.nix b/home/xonsh.nix index 3b948df..0b8cd2a 100644 --- a/home/xonsh.nix +++ b/home/xonsh.nix @@ -29,6 +29,7 @@ GOBIN = "${config.home.homeDirectory}/src/bin"; EFI_DIR = "${pkgs.OVMF.fd}/FV/"; + }; aliases = { @@ -70,6 +71,9 @@ }; configHeader = builtins.readFile ./xonsh_header.xsh; - configFooter = builtins.readFile ./xonsh_footer.xsh; + configFooter = (builtins.readFile ./xonsh_footer.xsh) + (builtins.concatStringsSep "\n" [ + "with open('${pkgs.stdenv.cc}/nix-support/dynamic-linker', 'r') as fp:" + " $NIX_LD = fp.read().strip()" + ]); }; }