You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
669 B
26 lines
669 B
# Shell for bootstrapping flake-enabled nix and other tooling
|
|
{ pkgs ? # If pkgs is not defined, instanciate nixpkgs from locked commit
|
|
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 = [ ]; }
|
|
, ...
|
|
}: {
|
|
default = pkgs.mkShell {
|
|
NIX_CONFIG = "extra-experimental-features = nix-command flakes repl-flake";
|
|
nativeBuildInputs = with pkgs; [
|
|
nix
|
|
home-manager
|
|
git
|
|
|
|
sops
|
|
ssh-to-age
|
|
gnupg
|
|
age
|
|
];
|
|
};
|
|
}
|
|
|