mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
22 lines
513 B
Nix
22 lines
513 B
Nix
{
|
|
pkgs,
|
|
inputs,
|
|
system,
|
|
...
|
|
}:
|
|
with pkgs; let
|
|
repo = import ../outputs.nix (inputs // {inherit inputs system;});
|
|
inherit (lib.attrsets) mapAttrsToList;
|
|
in
|
|
mkShell {
|
|
nativeBuildInputs =
|
|
[
|
|
deadnix # dead-code scanner
|
|
alejandra # code formatter
|
|
statix # anti-pattern finder
|
|
]
|
|
++ mapAttrsToList (name: _: (pkgs.writeShellScriptBin "${name}-rebuild" ''
|
|
darwin-rebuild switch --flake $REPO_ROOT#${name}
|
|
''))
|
|
repo.darwinConfigurations;
|
|
}
|