mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 12:29:19 -08:00
24 lines
584 B
Nix
24 lines
584 B
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
std,
|
|
...
|
|
}:
|
|
with pkgs; let
|
|
repo = import ../outputs.nix { inherit inputs; };
|
|
inherit (std) set list;
|
|
repoShell = mkShell {
|
|
nativeBuildInputs =
|
|
[
|
|
go # Required for pulumi
|
|
pulumi-bin # Infrastructure as code
|
|
deadnix # dead-code scanner
|
|
alejandra # code formatter
|
|
statix # anti-pattern finder
|
|
]
|
|
++ set.values (set.map (name: _: (pkgs.writeShellScriptBin "${name}-rebuild" ''
|
|
darwin-rebuild switch --flake $REPO_ROOT#${name}
|
|
''))
|
|
repo.darwinConfigurations);
|
|
};
|
|
in repoShell
|