feat: rework to modular

This commit is contained in:
eric
2026-04-10 17:25:08 +02:00
parent 28dad81816
commit 99658b27dc
39 changed files with 738 additions and 211 deletions

15
lib/mkSystem.nix Normal file
View File

@@ -0,0 +1,15 @@
{ systems }:
{
target,
...
}@args:
let
adapter =
if target == "darwin" then
systems.darwin
else if target == "linux" then
systems.linux
else
throw "Unsupported target `${target}`. Expected `darwin` or `linux`.";
in
adapter (builtins.removeAttrs args [ "target" ])