add flake module

This commit is contained in:
Emile Clark-Boman 2026-01-27 17:50:53 +10:00
parent 3fe748f174
commit bc2a62e62b
4 changed files with 84 additions and 0 deletions

20
flake/util.nix Normal file
View file

@ -0,0 +1,20 @@
{
flake,
systems,
nixpkgs,
...
}: let
inherit
(builtins)
attrValues
;
in {
forAllSystems = f:
nixpkgs.lib.genAttrs systems (system:
f system (import nixpkgs {
inherit system;
allowUnfree = false;
allowBroken = false;
overlays = attrValues flake.overlays;
}));
}