From 90d94edd6c6dcaf3d1dde28b37b9286f66584f09 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Sun, 1 Aug 2021 00:35:32 -0400 Subject: [PATCH] move NIX_PATH into /run/current-system/sw/ --- modules/cli.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/cli.nix b/modules/cli.nix index 0c751bd..37ad2fc 100644 --- a/modules/cli.nix +++ b/modules/cli.nix @@ -79,8 +79,15 @@ in 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 = '' [install] no-warn-script-location = false @@ -89,8 +96,6 @@ in environment.variables.PLGO_HOSTNAMEFG = "0"; environment.variables.PLGO_HOSTNAMEBG = "114"; - nix.nixPath = [ "nixpkgs=${modulesPath}/../.." ]; - programs.tmux = { enable = true; terminal = "screen-256color";