mirror of
https://github.com/callumio/nixfiles.git
synced 2026-08-06 20:49:17 +01:00
26 lines
493 B
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;
|
|
}
|
|
];
|
|
}
|
|
);
|
|
}
|