Replaces user level nixpkgs channel with Nix package from this flake

nix-darwin
Abhinav Sarkar 2023-11-24 22:21:12 +05:30
parent 7814715c12
commit cacfa639df
2 changed files with 7 additions and 3 deletions

View File

@ -41,8 +41,9 @@
devShells.${system}.default = pkgs.mkShell {
buildInputs = with pkgs; [ (import home-manager { inherit pkgs; }).home-manager just ];
shellHook = ''
ln -s ${pkgs.path} .direnv/nixpkgs;
export NIX_PATH=`pwd`/.direnv;
export NIX_PATH=$HOME/.hm-nixchannels;
mkdir -p $NIX_PATH;
ln -f -s ${pkgs.path} -T $NIX_PATH/nixpkgs;
'';
};
};

View File

@ -21,7 +21,10 @@
cat = "${pkgs.bat}/bin/bat";
};
sessionVariables = { EDITOR = "micro"; };
sessionVariables = {
EDITOR = "micro";
NIX_PATH = "$HOME/.hm-nixchannels";
};
file."Applications/Home Manager Apps".source = let
apps = pkgs.buildEnv {