{ inputs, lib, ... }: with lib; let mkConfiguration = name: { modules ? [ ], configuration ? ./${name}, this ? my.configurations.${name}, }: nameValuePair name (nixosSystem { inherit (this) system; modules = modules ++ attrValues inputs.self.nixosModules ++ attrValues inputs.nix-topology.nixosModules ++ optional (configuration != null) (import configuration); specialArgs = { inherit inputs lib this; }; }); in mapAttrs' mkConfiguration ( let mkTest = this: { modules = with inputs; [ "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix" nixpkgs.nixosModules.notDetected ]; inherit this; }; in { test-headless = mkTest { hostname = "test-headless"; system = "x86_64-linux"; isHeadless = true; isHeadful = false; }; test-headful = mkTest { hostname = "test-headful"; system = "x86_64-linux"; isHeadless = false; isHeadful = true; }; iso = { this = { hostname = "iso"; system = "x86_64-linux"; isHeadless = false; isHeadful = false; }; modules = [ "${inputs.nixpkgs}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix" ]; }; eonwe.modules = with inputs; [ nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-cpu-amd-pstate nixos-hardware.nixosModules.common-gpu-amd nixos-hardware.nixosModules.common-pc-ssd nixpkgs.nixosModules.notDetected srvos.nixosModules.desktop ]; ilmare.modules = with inputs; [ disko.nixosModules.disko nixos-hardware.nixosModules.common-hidpi nixos-hardware.nixosModules.lenovo-thinkpad-x1-nano nixpkgs.nixosModules.notDetected srvos.nixosModules.desktop ]; manwe.modules = with inputs; [ "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix" nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-pc-ssd nixpkgs.nixosModules.notDetected srvos.nixosModules.server ]; varda.modules = with inputs; [ "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix" nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-pc-ssd nixpkgs.nixosModules.notDetected srvos.nixosModules.server ]; tulkas.modules = with inputs; [ "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix" disko.nixosModules.disko nixos-hardware.nixosModules.common-cpu-amd nixos-hardware.nixosModules.common-pc-ssd nixpkgs.nixosModules.notDetected srvos.nixosModules.server ]; yavanna.modules = with inputs; [ "${nixpkgs}/nixos/modules/profiles/qemu-guest.nix" nixos-hardware.nixosModules.common-cpu-intel nixpkgs.nixosModules.notDetected srvos.nixosModules.server ]; } )