Automatically generate list of systems

This commit is contained in:
Manuel Thalmann 2023-12-02 01:40:38 +01:00
parent cf598aca71
commit bcc7d4a7db

View file

@ -10,7 +10,20 @@
system = import ./lib/system.nix {
inherit nixpkgs;
};
systems = [
{
name = "nixos";
}
];
in {
nixosConfigurations.nixos = system "nixos" {};
nixosConfigurations = builtins.listToAttrs
(
builtins.map (
{ name, config ? {} }:
{
inherit name;
value = system name config;
})
systems);
};
}