1
1
Fork 0

Enable Nix-ld for remote VSCode SSH usage

main
Bill Ewanick 2023-04-08 18:49:00 -04:00
parent a78b1ee8ab
commit de8714c89a
1 changed files with 11 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, lib, ... }:
{
imports =
@ -82,6 +82,15 @@
sysstat
];
# Enable Nix-ld for remote VSCode SSH to work
programs.nix-ld.enable = true;
environment.variables = {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
pkgs.stdenv.cc.cc
];
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
};
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
@ -93,6 +102,7 @@
networking.useDHCP = false;
networking.interfaces.eth0.useDHCP = true;
# Linode Longview monitoring
services.longview = {
enable = true;
apiKeyFile = "/var/lib/longview/apiKeyFile";
@ -105,5 +115,4 @@
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
}