forked from fediversity/fediversity
		
	Fix Pixelfed
This commit is contained in:
		
							parent
							
								
									cd83536e2f
								
							
						
					
					
						commit
						2ee563f5d9
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		|  | @ -51,6 +51,14 @@ in | |||
|     ) | ||||
| 
 | ||||
|     (mkIf config.fediversity.pixelfed.enable { | ||||
|       ## NOTE: Pixelfed as packaged in nixpkgs has a permission issue that prevents Nginx | ||||
|       ## from being able to serving the images. We fix it here, but this should be | ||||
|       ## upstreamed. See https://github.com/NixOS/nixpkgs/issues/235147 | ||||
|       services.pixelfed.package = pkgs.pixelfed.overrideAttrs (old: { | ||||
|         patches = (old.patches or [ ]) ++ [ ./group-permissions.patch ]; | ||||
|       }); | ||||
|       users.users.nginx.extraGroups = [ "pixelfed" ]; | ||||
| 
 | ||||
|       services.pixelfed = { | ||||
|         enable = true; | ||||
|         domain = config.fediversity.pixelfed.domain; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue