athens/nix/shells.nix
2023-08-20 13:06:05 -04:00

27 lines
534 B
Nix

{ system, pkgs, self, ... }:
let
darwin-local = pkgs.writeScriptBin "darwin-local" ''
#!${pkgs.stdenv.shell}
nix build .#darwinConfigurations.$(hostname -s).system
./result/sw/bin/darwin-rebuild switch --flake .
'';
in
{
default = pkgs.mkShell {
name = "athens";
buildInputs = with pkgs; [
darwin-local
deploy-rs.deploy-rs
deadnix
doctl
nil
nixpkgs-fmt
statix
sops
terraform
];
inherit (self.checks.${system}.pre-commit-check) shellHook;
};
}