nixosModules: move pixelfed package definition into flake lexical scope
This commit is contained in:
		
							parent
							
								
									a4fedcbc44
								
							
						
					
					
						commit
						c9bd295faa
					
				
					 5 changed files with 31 additions and 11 deletions
				
			
		|  | @ -59,7 +59,4 @@ lib.mkIf (config.fediversity.enable && config.fediversity.pixelfed.enable) { | |||
|     after = [ "ensure-garage.service" ]; | ||||
|   }; | ||||
| 
 | ||||
|   services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: { | ||||
|     patches = (old.patches or [ ]) ++ [ ./pixelfed-group-permissions.patch ]; | ||||
|   }); | ||||
| } | ||||
|  |  | |||
							
								
								
									
										36
									
								
								flake.nix
									
										
									
									
									
								
							
							
						
						
									
										36
									
								
								flake.nix
									
										
									
									
									
								
							|  | @ -13,13 +13,39 @@ | |||
| 
 | ||||
|     nixosModules = { | ||||
|       ## Fediversity modules | ||||
|       fediversity = ./fediversity; | ||||
|       fediversity = { | ||||
|         imports = [ ./fediversity ]; | ||||
| 
 | ||||
|         services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: { | ||||
|           patches = (old.patches or [ ]) ++ [ ./fediversity/pixelfed-group-permissions.patch ]; | ||||
|         }); | ||||
|       }; | ||||
| 
 | ||||
|       ## VM-specific modules | ||||
|       interactive-vm = ./vm/interactive-vm.nix; | ||||
|       mastodon-vm = ./vm/mastodon-vm.nix; | ||||
|       peertube-vm = ./vm/peertube-vm.nix; | ||||
|       pixelfed-vm = ./vm/pixelfed-vm.nix; | ||||
|       interactive-vm = { | ||||
|         imports = [ | ||||
|           ./vm/interactive-vm.nix | ||||
|           self.nixosModules.fediversity | ||||
|         ]; | ||||
|       }; | ||||
|       mastodon-vm = { | ||||
|         imports = [ | ||||
|           ./vm/mastodon-vm.nix | ||||
|           self.nixosModules.fediversity | ||||
|         ]; | ||||
|       }; | ||||
|       peertube-vm = { | ||||
|         imports = [ | ||||
|           ./vm/peertube-vm.nix | ||||
|           self.nixosModules.fediversity | ||||
|         ]; | ||||
|       }; | ||||
|       pixelfed-vm = { | ||||
|         imports = [ | ||||
|           ./vm/pixelfed-vm.nix | ||||
|           self.nixosModules.fediversity | ||||
|         ]; | ||||
|       }; | ||||
|     }; | ||||
| 
 | ||||
|     nixosConfigurations = { | ||||
|  |  | |||
|  | @ -1,7 +1,6 @@ | |||
| { modulesPath, lib, config, ... }: { | ||||
| 
 | ||||
|   imports = [ | ||||
|     ../fediversity | ||||
|     (modulesPath + "/virtualisation/qemu-vm.nix") | ||||
|   ]; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,6 @@ | |||
| { pkgs, modulesPath, ... }: { | ||||
| 
 | ||||
|   imports = [ | ||||
|     ../fediversity | ||||
|     (modulesPath + "/virtualisation/qemu-vm.nix") | ||||
|   ]; | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,6 @@ | |||
| { pkgs, modulesPath, ... }: { | ||||
| 
 | ||||
|   imports = [ | ||||
|     ../fediversity | ||||
|     (modulesPath + "/virtualisation/qemu-vm.nix") | ||||
|   ]; | ||||
| 
 | ||||
|  |  | |||
		Reference in a new issue