shell.nix 618 B

123456789101112131415161718192021222324252627282930
  1. { pkgs ? let
  2. lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
  3. nixpkgs = fetchTarball {
  4. url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
  5. sha256 = lock.narHash;
  6. };
  7. in
  8. import nixpkgs { overlays = [ ]; }
  9. , shellHook ? ""
  10. , enabledPackages ? [ ]
  11. , ...
  12. }:
  13. {
  14. default = pkgs.mkShell {
  15. inherit shellHook;
  16. NIX_CONFIG = "extra-experimental-features = nix-command flakes";
  17. nativeBuildInputs = with pkgs; [
  18. nix
  19. nixfmt-tree
  20. home-manager
  21. git
  22. ragenix
  23. gnupg
  24. age
  25. ] ++ enabledPackages;
  26. };
  27. }