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