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