partial host migrations to flake parts

This commit is contained in:
Callum Leslie 2026-04-22 21:28:05 +01:00
parent 1f779fff49
commit 091cfbdf96
Signed by: cleslie
GPG key ID: D382C4AFEECEAA90
13 changed files with 209 additions and 165 deletions

26
modules/lib/mk-host.nix Normal file
View file

@ -0,0 +1,26 @@
{
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;
}
];
}
);
}