Files
lux/modules/flake-parts.nix
T
2026-05-06 21:57:58 +02:00

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;
};
}