| 123456789101112131415161718192021222324252627282930 |
- { pkgs ? let
- lock = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.nixpkgs.locked;
- nixpkgs = fetchTarball {
- url = "https://github.com/nixos/nixpkgs/archive/${lock.rev}.tar.gz";
- sha256 = lock.narHash;
- };
- in
- import nixpkgs { overlays = [ ]; }
- , shellHook ? null
- , enabledPackages ? [ ]
- , ...
- }:
- {
- default = pkgs.mkShell {
- inherit shellHook;
- NIX_CONFIG = "extra-experimental-features = nix-command flakes";
- nativeBuildInputs = with pkgs; [
- nix
- nixfmt-tree
- home-manager
- git
- ragenix
- gnupg
- age
- ] ++ enabledPackages;
- };
- }
|