nixfiles/modules/lib/mk-host.nix

26 lines
493 B
Nix

{
config,
inputs,
withSystem,
...
}:
{
flake.lib.mkHost =
{
system ? "x86_64-linux",
modules,
overlays ? [ ],
}:
withSystem system (
{ ... }:
inputs.nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs; }; # TODO: REMOVE
modules = modules ++ [
{
nixpkgs.config.allowUnfree = true;
nixpkgs.overlays = [ config.flake.overlays.default ] ++ overlays;
}
];
}
);
}