forked from fediversity/fediversity
		
	
			factor out import of function.nix				#14
		
		
	
					 1 changed files with 3 additions and 3 deletions
				
			
		| 
						 | 
					@ -15,7 +15,7 @@ let
 | 
				
			||||||
    functionTo
 | 
					    functionTo
 | 
				
			||||||
    ;
 | 
					    ;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  functionType = import ./function.nix;
 | 
					  functionType = submodule ./function.nix;
 | 
				
			||||||
  application-resources = submodule {
 | 
					  application-resources = submodule {
 | 
				
			||||||
    options.resources = mkOption {
 | 
					    options.resources = mkOption {
 | 
				
			||||||
      # TODO: maybe transpose, and group the resources by type instead
 | 
					      # TODO: maybe transpose, and group the resources by type instead
 | 
				
			||||||
| 
						 | 
					@ -110,7 +110,7 @@ in
 | 
				
			||||||
            # TODO(@fricklerhandwerk): this needs a better name, it's just the type
 | 
					            # TODO(@fricklerhandwerk): this needs a better name, it's just the type
 | 
				
			||||||
            config-mapping = mkOption {
 | 
					            config-mapping = mkOption {
 | 
				
			||||||
              description = "Function type for the mapping from application configuration to required resources";
 | 
					              description = "Function type for the mapping from application configuration to required resources";
 | 
				
			||||||
              type = submodule functionType;
 | 
					              type = functionType;
 | 
				
			||||||
              readOnly = true;
 | 
					              readOnly = true;
 | 
				
			||||||
              default = {
 | 
					              default = {
 | 
				
			||||||
                input-type = submodule application.config.module;
 | 
					                input-type = submodule application.config.module;
 | 
				
			||||||
| 
						 | 
					@ -146,7 +146,7 @@ in
 | 
				
			||||||
            };
 | 
					            };
 | 
				
			||||||
            resource-mapping = mkOption {
 | 
					            resource-mapping = mkOption {
 | 
				
			||||||
              description = "Function type for the mapping from resources to a (NixOps4) deployment";
 | 
					              description = "Function type for the mapping from resources to a (NixOps4) deployment";
 | 
				
			||||||
              type = submodule functionType;
 | 
					              type = functionType;
 | 
				
			||||||
              readOnly = true;
 | 
					              readOnly = true;
 | 
				
			||||||
              default = {
 | 
					              default = {
 | 
				
			||||||
                input-type = application-resources;
 | 
					                input-type = application-resources;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue