33 lines
532 B
Nix
33 lines
532 B
Nix
{
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
hostNames = [
|
|
"orion"
|
|
"polaris"
|
|
"zenith"
|
|
];
|
|
nixosModules = config.flake.modules.nixos;
|
|
in
|
|
{
|
|
imports = [ inputs.flake-parts.flakeModules.modules ];
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
flake.nixosConfigurations = inputs.nixpkgs.lib.genAttrs hostNames (
|
|
name:
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [ nixosModules.${name} ];
|
|
}
|
|
);
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
formatter = pkgs.nixfmt-tree;
|
|
};
|
|
}
|