]> Git — Sourcephile - julm/julm-nix.git/blob - shell.nix
pumpkin: add host
[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 pkgs.gnupg
12 pkgs.pinentry-curses
13 pkgs.git-crypt
14 pkgs.zfs
15 ];
16 #enableParallelBuilding = true;
17 NIX_PATH = pkgs.lib.concatStringsSep ":" [
18 "nixpkgs=${nixpkgsPath}"
19 "nixpkgs-overlays=${builtins.path { path = inputs.self + "/nixpkgs"; }}/overlays.nix"
20 "home-manager=${inputs.home-manager}"
21 ];
22 shellHook = ''
23 echo >&2 "nix: running shellHook"
24 PATH="${inputs.home-manager.defaultPackage.${system}}/bin:$PATH"
25 PASSWORD_STORE_DIR=$PWD
26 nix-store --add-root nixpkgs.root --indirect --realise ${nixpkgsPath}
27 ${shellHook}
28 '';
29 }