2021-07-04 21:50:02 +03:00
|
|
|
{
|
|
|
|
description = "My Miniguest guests";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixos.url = "nixpkgs/nixos-unstable";
|
2021-08-27 19:35:07 +03:00
|
|
|
miniguest.url = "github:bbjubjub2494/miniguest?dir=core";
|
2021-07-04 21:50:02 +03:00
|
|
|
miniguest.inputs.nixpkgs.follows = "nixos";
|
|
|
|
};
|
|
|
|
|
2021-08-27 19:35:07 +03:00
|
|
|
outputs = { self, nixos, miniguest }:
|
2021-07-04 21:50:02 +03:00
|
|
|
with nixos.lib; {
|
2021-08-27 19:35:07 +03:00
|
|
|
nixosConfigurations = attrsets.mapAttrs
|
|
|
|
(name: _:
|
|
|
|
nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [ miniguest.nixosModules.core (./guests + "/${name}") ];
|
|
|
|
})
|
|
|
|
(builtins.readDir ./guests);
|
|
|
|
};
|
2021-07-04 21:50:02 +03:00
|
|
|
}
|