feat: lurching towards relative usability

This commit is contained in:
Kat Inskip 2023-01-16 17:31:04 -05:00
parent a0fb7eb402
commit 961ec369ba
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
51 changed files with 1349 additions and 407 deletions

15
shells/repo.nix Normal file
View file

@ -0,0 +1,15 @@
{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 ${toString ../.}#${name}
''))
repo.darwinConfigurations;
}