set NIX_PATH

This commit is contained in:
Florian Agbuya 2024-02-19 15:55:59 +08:00
parent a86db3cd33
commit 72e91bfdb2
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
diff --git a/base.nix b/base.nix
index 7eaee32..5e5d650 100644
index 7eaee32..8e317ec 100644
--- a/base.nix
+++ b/base.nix
@@ -27,6 +27,11 @@ with lib;
@ -14,7 +14,7 @@ index 7eaee32..5e5d650 100644
not-os.simpleStaticIp = mkOption {
type = types.bool;
default = false;
@@ -93,8 +98,13 @@ with lib;
@@ -93,8 +98,14 @@ with lib;
build-cores = 4
EOF
'';
@ -25,6 +25,7 @@ index 7eaee32..5e5d650 100644
+ profile.text = ''
+ export PATH=/run/current-system/sw/bin
+ export EDITOR=nano
+ export NIX_PATH="nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels"
+ '';
"resolv.conf".text = "nameserver 10.0.2.3";
passwd.text = ''