X-Git-Url: https://git.sourcephile.fr/julm/julm-nix.git/blobdiff_plain/43b01fd7d2bb0e547a9d46a2069d618aa6657ed1..3745c6417282e20c8c5a8ef6df4fb25e47107f26:/shell.nix diff --git a/shell.nix b/shell.nix index ce375e1..f772c96 100644 --- a/shell.nix +++ b/shell.nix @@ -1,23 +1,37 @@ -{ pkgs, inputs, system, nixpkgsPath, ... }: +{ + pkgs, + inputs, + system, + nixpkgsPath, + shellHook ? "", + ... +}: pkgs.mkShell { name = "shell"; src = null; #preferLocalBuild = true; #allowSubstitutes = false; buildInputs = [ - (pkgs.nixos []).nixos-install - inputs.creds.packages.${system}.default + (pkgs.nixos [ ]).nixos-install + pkgs.git-crypt + pkgs.gnumake + pkgs.gnupg + pkgs.gptfdisk + pkgs.nixfmt-rfc-style + pkgs.pinentry-curses + pkgs.zfs ]; #enableParallelBuilding = true; NIX_PATH = pkgs.lib.concatStringsSep ":" [ "nixpkgs=${nixpkgsPath}" - "nixpkgs-overlays=${inputs.self}/nixpkgs/overlays.nix" + "nixpkgs-overlays=${builtins.path { path = inputs.self + "/nixpkgs"; }}/overlays.nix" "home-manager=${inputs.home-manager}" ]; shellHook = '' echo >&2 "nix: running shellHook" - PATH="${inputs.home-manager.defaultPackage.${system}}/bin:$PATH" + PATH="${inputs.home-manager.packages.${system}.default}/bin:$PATH" PASSWORD_STORE_DIR=$PWD nix-store --add-root nixpkgs.root --indirect --realise ${nixpkgsPath} + ${shellHook} ''; }