From 7337631c4f20c172823f59cd7349d8ad24ae9ea3 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 19 Aug 2023 23:37:18 -0600 Subject: [PATCH] [NixOS] Set nixpath with nix variable instead of shellInit --- nixos/environment.nix | 1 - nixos/nix.nix | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/environment.nix b/nixos/environment.nix index 76bc110e..ca5b1ec0 100644 --- a/nixos/environment.nix +++ b/nixos/environment.nix @@ -72,7 +72,6 @@ with lib; export STARSHIP_INSIDE_EMACS="yes" ''; extraInit = '' - export NIX_PATH="nixpkgs=${inputs.nixpkgs.outPath}:$NIX_PATH"; export PATH="$HOME/.cargo/bin:${libDir}/bin:${libDir}/functions:$PATH"; ''; }; diff --git a/nixos/nix.nix b/nixos/nix.nix index 52806c8d..a4e4a9c5 100644 --- a/nixos/nix.nix +++ b/nixos/nix.nix @@ -21,6 +21,10 @@ keep-derivations = true; }; channel.enable = false; + nixPath = [ + "nixpkgs=${inputs.nixpkgs.outPath}" + "configuration" + ]; }; nixpkgs.overlays = with inputs; [