nichts/parts/lib/builders.nix

30 lines
556 B
Nix
Raw Normal View History

2024-08-30 23:15:56 +02:00
{inputs, ...}: let
inherit (inputs) self nixpkgs;
inherit (nixpkgs) lib;
in {
mkSystem = {
withSystem,
system,
...
} @ args:
withSystem system (
{
inputs',
self',
...
}:
lib.nixosSystem {
inherit system;
specialArgs =
lib.recursiveUpdate
{
inherit lib;
inherit inputs inputs';
inherit self self';
}
(args.specialArgs or {});
inherit (args) modules;
}
);
}