]> Git — Sourcephile - julm/julm-nix.git/blob - shell.nix
nix: add $NO_NIXOS_FALLBACK
[julm/julm-nix.git] / shell.nix
1 { pkgs, inputs, system, nixpkgsPath, shellHook ? "", ... }:
2 pkgs.mkShell {
3 name = "shell";
4 src = null;
5 #preferLocalBuild = true;
6 #allowSubstitutes = false;
7 buildInputs = [
8 (pkgs.nixos [ ]).nixos-install
9 pkgs.gnumake
10 pkgs.gptfdisk
11 ];
12 #enableParallelBuilding = true;
13 NIX_PATH = pkgs.lib.concatStringsSep ":" [
14 "nixpkgs=${nixpkgsPath}"
15 "nixpkgs-overlays=${inputs.self}/nixpkgs/overlays.nix"
16 "home-manager=${inputs.home-manager}"
17 ];
18 shellHook = ''
19 echo >&2 "nix: running shellHook"
20 PATH="${inputs.home-manager.defaultPackage.${system}}/bin:$PATH"
21 PASSWORD_STORE_DIR=$PWD
22 nix-store --add-root nixpkgs.root --indirect --realise ${nixpkgsPath}
23 ${shellHook}
24 '';
25 }