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

@ -6,11 +6,24 @@
};
outputs = { self, nixpkgs }:
let
system = import ./lib/system.nix {
inherit nixpkgs;
let
system = import ./lib/system.nix {
inherit nixpkgs;
};
systems = [
{
name = "nixos";
}
];
in {
nixosConfigurations = builtins.listToAttrs
(
builtins.map (
{ name, config ? {} }:
{
inherit name;
value = system name config;
})
systems);
};
in {
nixosConfigurations.nixos = system "nixos" {};
};
}