2025-05-31 21:27:53 +03:00
|
|
|
{
|
|
|
|
description = "All system configurations for Vili Sinervä";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-25.05";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
2025-06-01 13:34:34 +03:00
|
|
|
{ nixpkgs, ... }:
|
2025-05-31 21:27:53 +03:00
|
|
|
{
|
2025-06-01 13:34:34 +03:00
|
|
|
nixosConfigurations = (
|
|
|
|
let
|
|
|
|
hosts = map (name: (nixpkgs.lib.removeSuffix ".nix" name)) (
|
|
|
|
builtins.attrNames (builtins.readDir ./hosts)
|
|
|
|
);
|
|
|
|
in
|
|
|
|
builtins.listToAttrs (
|
|
|
|
map (
|
|
|
|
host:
|
|
|
|
nixpkgs.lib.nameValuePair host (
|
|
|
|
nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [ ./hosts/${host}.nix ];
|
|
|
|
}
|
|
|
|
)
|
|
|
|
) hosts
|
|
|
|
)
|
|
|
|
);
|
2025-05-31 21:27:53 +03:00
|
|
|
};
|
|
|
|
}
|