Fix Pixelfed

This commit is contained in:
Nicolas Jeannerod 2025-02-15 11:22:55 +01:00
parent cd83536e2f
commit 2ee563f5d9
Signed by untrusted user: Niols
GPG key ID: 35DB9EC8886E1CB8

View file

@ -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;