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