{ nixpkgs, disko, sops, ... }@inputs: let deploymentPkgs = import nixpkgs { localSystem.system = "x86_64-linux"; }; in with deploymentPkgs.lib; let mkMachine = type: opts: { lib, ... }: let machine = import ./machines/${type} opts; in { imports = [ ./shared ./modules machine sops.nixosModules.sops disko.nixosModules.disko ]; }; machines = { manager = mkMachine "manager" {}; } // (listToAttrs (genList (i: nameValuePair "node-${fixedWidthNumber 2 i}" (mkMachine "node" { id = i; }) ) 16)); in { meta = { nixpkgs = deploymentPkgs; specialArgs = { inherit inputs; }; }; } // machines