machines-config/lib.nix

20 lines
278 B
Nix
Raw Normal View History

2024-12-18 11:34:20 +01:00
{
nixpkgs,
inputs,
}:
{
mkHost = name: arch: {
nixpkgs.lib.nixosSystem = {
system = arch;
modules = [
2024-12-18 23:14:56 +01:00
./hosts/base.nix
2024-12-18 11:34:20 +01:00
./hosts/${name}.nix
./nixosModules
];
specialArgs = {
inherit inputs;
};
};
};
}