Set up nix-ld for vscode remote.

This commit is contained in:
2024-10-12 10:45:29 +01:00
parent 4fed25b153
commit b59684816f
2 changed files with 12 additions and 0 deletions

View File

@@ -8,4 +8,12 @@
];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# for vscode remote to work
programs.nix-ld = {
enable = true;
libraries = with pkgs; [
stdenv.cc.cc
];
};
}

View File

@@ -11,6 +11,10 @@
NOMAD_ADDR = "http://nomad.service.consul:4646";
LESS = "-F -i -M -+S -R -w -X -z-4";
SYSTEMD_LESS = "FiM+SRwXz-4";
NIX_LD = "${pkgs.glibc}/lib/ld-linux-x86-64.so.2";
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.stdenv.cc.cc
];
};
shellAliases = {