diff --git a/nixos-configurations/default.nix b/nixos-configurations/default.nix index 5aa1a71..2860b84 100644 --- a/nixos-configurations/default.nix +++ b/nixos-configurations/default.nix @@ -5,28 +5,26 @@ util, ... }: -{ - imports = - util.readModulesDir ./. - |> lib.mapAttrsToList ( - hostName: path: { - flake = - let - nixosConfiguration = inputs.nixpkgs.lib.nixosSystem { - specialArgs = { inherit self; }; - modules = [ - path - { networking = { inherit hostName; }; } - ]; - }; +util.readModulesDir ./. +|> lib.mapAttrsToList ( + hostName: path: { + flake = + let + nixosConfiguration = inputs.nixpkgs.lib.nixosSystem { + specialArgs = { inherit self; }; + modules = [ + path + { networking = { inherit hostName; }; } + ]; + }; - system = nixosConfiguration.config.nixpkgs.hostPlatform.system; - in - { - nixosConfigurations.${hostName} = nixosConfiguration; - checks.${system}."nixosConfigurations/${hostName}" = - nixosConfiguration.config.system.build.toplevel; - }; - } - ); -} + system = nixosConfiguration.config.nixpkgs.hostPlatform.system; + in + { + nixosConfigurations.${hostName} = nixosConfiguration; + checks.${system}."nixosConfigurations/${hostName}" = + nixosConfiguration.config.system.build.toplevel; + }; + } +) +|> lib.mkMerge