diff --git a/flake.nix b/flake.nix index c140314..f7995bc 100644 --- a/flake.nix +++ b/flake.nix @@ -350,68 +350,5 @@ shellHook = (nix-pre-commit.lib.${system}.mkConfig { inherit pkgs config; }).shellHook; } ) sops-nix.packages; - - hydraJobs = - { - build = ( - recursiveMerge ( - (map (machine: { - ${machine.pkgs.system} = ( - builtins.listToAttrs ( - builtins.filter (v: v != { }) ( - map ( - pkg: - ( - if (builtins.hasAttr pkg.name pkgsBySystem.${machine.pkgs.system}) then - { - name = pkg.name; - value = pkgsBySystem.${machine.pkgs.system}.${pkg.name}; - } - else - { } - ) - ) machine.config.environment.systemPackages - ) - ) - ); - }) (builtins.attrValues self.nixosConfigurations)) - ++ [ self.formatter ] - ) - ); - } - // lib.mapAttrs (__: lib.mapAttrs (_: lib.hydraJob)) ( - let - mkBuild = - type: - let - getBuildEntryPoint = ( - name: nixosSystem: - if builtins.hasAttr type nixosSystem.config.system.build then - let - cfg = nixosSystem.config.system.build.${type}; - in - if nixosSystem.config.nixpkgs.system == "aarch64-linux" then - lib.recursiveUpdate cfg { meta.timeout = 24 * 60 * 60; } - else - cfg - else - { } - ); - in - lib.filterAttrs (n: v: v != { }) (builtins.mapAttrs getBuildEntryPoint self.nixosConfigurations); - in - builtins.listToAttrs ( - map - (type: { - name = type; - value = mkBuild type; - }) - [ - "toplevel" - "isoImage" - "sdImage" - ] - ) - ); }; }