forked from fediversity/fediversity
		
	Fix Pixelfed permission issue
This commit is contained in:
		
							parent
							
								
									5134bab2d2
								
							
						
					
					
						commit
						e888db9f4b
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		|  | @ -13,6 +13,14 @@ in | |||
| }: | ||||
| 
 | ||||
| lib.mkIf (config.fediversity.enable && config.fediversity.pixelfed.enable) { | ||||
| 
 | ||||
|   ## 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 [ ]) ++ [ ./pixelfed-group-permissions.patch ]; | ||||
|   }); | ||||
| 
 | ||||
|   services.garage = { | ||||
|     ensureBuckets = { | ||||
|       pixelfed = { | ||||
|  | @ -61,6 +69,8 @@ lib.mkIf (config.fediversity.enable && config.fediversity.pixelfed.enable) { | |||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   users.users.nginx.extraGroups = [ "pixelfed" ]; | ||||
| 
 | ||||
|   services.pixelfed.settings = { | ||||
|     ## NOTE: This depends on the targets, eg. universities might want control | ||||
|     ## over who has an account. We probably want a universal | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue