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 }: outputs = { self, nixpkgs }:
let let
system = import ./lib/system.nix { system = import ./lib/system.nix {
inherit nixpkgs; 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" {};
};
} }