Files
nix-fleet/modules/platform/mkhost.nix
2026-03-03 10:43:21 +01:00

15 lines
370 B
Nix

{ inputs, ... }: {
flake.lib.mkHost = { system, user, host, extraModules ? [] }:
inputs.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit user host;
pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
modules = extraModules;
};
}