mochi/shell.nix
Joseph Hanson 9e0def2655
All checks were successful
Build / nix-build (native-x86_64, legiondary) (pull_request) Successful in 10m27s
Build / nix-build (native-aarch64, varda) (pull_request) Successful in 11m33s
Full talosctl overlay for 1.7.5 and partial go 1.22.4
2024-07-04 03:33:02 -05:00

30 lines
830 B
Nix

# Shell for bootstrapping flake-enabled nix and home-manager
{ pkgs ? let
# If pkgs is not defined, instantiate nixpkgs from locked commit
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;
};
system = builtins.currentSystem;
overlays = [ ]; # Explicit blank overlay to avoid interference
in
import nixpkgs { inherit system overlays; }
, ...
}:
pkgs.mkShell {
# Enable experimental features without having to specify the argument
NIX_CONFIG = "experimental-features = nix-command flakes";
nativeBuildInputs = with pkgs; [
nix
home-manager
git
nil
nixpkgs-fmt
go-task
sops
pre-commit
gitleaks
];
}