28 lines
472 B
Nix
28 lines
472 B
Nix
{
|
|
inputs,
|
|
config,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
inputs.flake-parts.flakeModules.modules
|
|
./data.nix
|
|
];
|
|
|
|
systems = [ "x86_64-linux" ];
|
|
|
|
flake.nixosConfigurations = builtins.mapAttrs (
|
|
name: machine:
|
|
inputs.nixpkgs.lib.nixosSystem {
|
|
specialArgs = { inherit inputs; };
|
|
modules = [ (config.repo.helpers.mkHost name machine) ];
|
|
}
|
|
) config.repo.machines;
|
|
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
formatter = pkgs.nixfmt-tree;
|
|
};
|
|
}
|