summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-11-08 12:28:53 +0100
committertv <tv@krebsco.de>2015-11-08 12:28:53 +0100
commit16856b7f8c092c10d3510b43a08084bf4796ff9d (patch)
tree8a37611716fd728d51df50432bc5213067e888fb
parentdaa3a1eb44e77f3c8743ce90fc2d3a2adaa28745 (diff)
tv configs: set NIX_PATH
-rw-r--r--tv/2configs/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/tv/2configs/default.nix b/tv/2configs/default.nix
index 688f8f9c..6ed1c65 100644
--- a/tv/2configs/default.nix
+++ b/tv/2configs/default.nix
@@ -90,6 +90,15 @@ with lib;
view = "vim -R";
};
+ environment.variables = {
+ NIX_PATH =
+ with config.krebs.build.source; with dir; with git;
+ mkForce (concatStringsSep ":" [
+ "nixpkgs=${nixpkgs.target-path}"
+ "secrets=${stockholm.target-path}/null"
+ ]);
+ };
+
programs.bash = {
interactiveShellInit = ''
HISTCONTROL='erasedups:ignorespace'