flake.nix: Move hydraJobs to seperate file
This commit is contained in:
		@@ -124,12 +124,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    inherit lib self;
 | 
					    inherit lib self;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    hydraJobs = {
 | 
					    hydraJobs = import ./flake/hydraJobs.nix inputs;
 | 
				
			||||||
      inherit (self)
 | 
					 | 
				
			||||||
        packages;
 | 
					 | 
				
			||||||
      nixosConfigurations = helper.buildHosts self.nixosConfigurations;
 | 
					 | 
				
			||||||
      iso = self.nixosConfigurations._iso.config.system.build.isoImage;
 | 
					 | 
				
			||||||
    };
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
    nixConfig = {
 | 
					    nixConfig = {
 | 
				
			||||||
      extra-substituters = [
 | 
					      extra-substituters = [
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										15
									
								
								flake/hydraJobs.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								flake/hydraJobs.nix
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
				
			|||||||
 | 
					{ self
 | 
				
			||||||
 | 
					, nixpkgs
 | 
				
			||||||
 | 
					, ...
 | 
				
			||||||
 | 
					}@inputs:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					let
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  buildHosts = hosts: builtins.mapAttrs (name: host: host.config.system.build.toplevel) (nixpkgs.lib.filterAttrs (name: host: (builtins.substring 0 1 name) != "_") hosts);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					in {
 | 
				
			||||||
 | 
					  inherit (self)
 | 
				
			||||||
 | 
					    packages;
 | 
				
			||||||
 | 
					  nixosConfigurations = buildHosts self.nixosConfigurations;
 | 
				
			||||||
 | 
					  iso = self.nixosConfigurations._iso.config.system.build.isoImage;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -10,8 +10,7 @@ let
 | 
				
			|||||||
    flake-helper = callLibs ./flake-helper.nix;
 | 
					    flake-helper = callLibs ./flake-helper.nix;
 | 
				
			||||||
    inherit ("flake-helper")
 | 
					    inherit ("flake-helper")
 | 
				
			||||||
      generateNixosSystem
 | 
					      generateNixosSystem
 | 
				
			||||||
      mapToNixosConfigurations
 | 
					      mapToNixosConfigurations;
 | 
				
			||||||
      buildHosts;
 | 
					 | 
				
			||||||
    clerie-monitoring-ids = callLibs ./clerie-monitoring-ids.nix;
 | 
					    clerie-monitoring-ids = callLibs ./clerie-monitoring-ids.nix;
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -54,6 +54,4 @@ rec {
 | 
				
			|||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  mapToNixosConfigurations = hosts: builtins.mapAttrs (name: host: generateNixosSystem host) hosts;
 | 
					  mapToNixosConfigurations = hosts: builtins.mapAttrs (name: host: generateNixosSystem host) hosts;
 | 
				
			||||||
 | 
					 | 
				
			||||||
  buildHosts = hosts: builtins.mapAttrs (name: host: host.config.system.build.toplevel) (nixpkgs.lib.filterAttrs (name: host: (builtins.substring 0 1 name) != "_") hosts);
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user