fix(deertopia): Jellyfin and Copyparty umasks

This commit is contained in:
Madeleine Sydney
2025-02-24 07:45:54 -07:00
parent c460157918
commit 4746fe5f37
2 changed files with 14 additions and 0 deletions

View File

@@ -19,9 +19,18 @@ in {
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
# HACK: Ad-hoc permissions, as typical.
users.users.copyparty.extraGroups = [ "jellyfin" ];
# HACK: Make files created by copypaste.service initialise with the mode
# 775.
systemd.services.copyparty.serviceConfig.UMask = lib.mkForce "002";
services.copyparty = {
enable = true;
settings = {
# These three options are necessary for SSO integration. No idea what
# they do. }:)
xff-src = "lan";
idp-h-usr = "remote-user";
idp-h-grp = "remote-groups";
@@ -42,6 +51,8 @@ in {
enableACME = true;
extraConfig = ''
include ${./authelia/authelia-location.conf};
# Increase limit of upload sizes.
client_max_body_size 20G;
'';
locations."/".extraConfig = ''
include ${./authelia/authelia-authrequest.conf};