mirror of
https://github.com/callumio/nixfiles.git
synced 2026-08-06 20:49:17 +01:00
partial host migrations to flake parts
This commit is contained in:
parent
1f779fff49
commit
091cfbdf96
13 changed files with 209 additions and 165 deletions
26
modules/lib/mk-host.nix
Normal file
26
modules/lib/mk-host.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue