move NIX_PATH into /run/current-system/sw/

This commit is contained in:
Sean Buckley 2021-08-01 00:35:32 -04:00
parent 8f1a78d939
commit 90d94edd6c

View file

@ -79,8 +79,15 @@ in
echo echo
'') '')
(runCommand "nixpkgs" { } ''
mkdir -p $out/share
ln -s ${modulesPath}/../.. $out/share/nixpkgs
'')
]; ];
nix.nixPath = [ "nixpkgs=/run/current-system/sw/share/nixpkgs" ];
environment.etc."pip.conf".text = '' environment.etc."pip.conf".text = ''
[install] [install]
no-warn-script-location = false no-warn-script-location = false
@ -89,8 +96,6 @@ in
environment.variables.PLGO_HOSTNAMEFG = "0"; environment.variables.PLGO_HOSTNAMEFG = "0";
environment.variables.PLGO_HOSTNAMEBG = "114"; environment.variables.PLGO_HOSTNAMEBG = "114";
nix.nixPath = [ "nixpkgs=${modulesPath}/../.." ];
programs.tmux = { programs.tmux = {
enable = true; enable = true;
terminal = "screen-256color"; terminal = "screen-256color";