nixos-configs/hosts/default.nix

32 lines
636 B
Nix
Raw Normal View History

2024-12-27 16:44:03 -06:00
{inputs, ...}: let
systems = ["mpl"];
inherit (inputs.nixpkgs) lib;
makeNixosConfigurations = systems:
lib.listToAttrs (lib.map
(name: let
system = import ./${name} {inherit inputs;};
in {
inherit name;
value = lib.nixosSystem {
inherit (system) system;
modules =
system.modules
++ [
{
_module.args = {
inherit inputs;
};
}
../modules
2024-12-27 16:44:03 -06:00
];
};
})
systems);
in {
nixosConfigurations = makeNixosConfigurations systems;
}