Automatically generate list of systems
This commit is contained in:
parent
cf598aca71
commit
bcc7d4a7db
15
flake.nix
15
flake.nix
|
@ -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);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue