pumpkin: zramSwap: enable
[julm/julm-nix.git] / shell.nix
index ce375e167a2e006638f63138f4c4b4fc9ca18c0e..f772c967d35011bbbcb75269ea43367f22efdb43 100644 (file)
--- 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}
   '';
 }