athens/nix/shells.nix

27 lines
534 B
Nix
Raw Normal View History

2023-07-27 15:51:15 -04:00
{ system, pkgs, self, ... }:
let
2023-07-27 15:51:15 -04:00
darwin-local = pkgs.writeScriptBin "darwin-local" ''
#!${pkgs.stdenv.shell}
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 {
name = "athens";
buildInputs = with pkgs; [
darwin-local
deploy-rs.deploy-rs
deadnix
2023-08-20 13:06:05 -04:00
doctl
nil
nixpkgs-fmt
statix
sops
2023-08-20 13:06:05 -04:00
terraform
];
inherit (self.checks.${system}.pre-commit-check) shellHook;
};
}