From 107f6ffbf2a8ed223c7b01d90de6932543a447a1 Mon Sep 17 00:00:00 2001 From: Skyler Grey Date: Tue, 4 Nov 2025 09:21:31 +0000 Subject: [PATCH] feat(copyparty): set library unix permissions Change-Id: uxsuxonyymwnkuxpovpqvyxluzvzsysm Without these, Kavita cannot access files in the library properly --- packetmix/systems/teal/copyparty.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/packetmix/systems/teal/copyparty.nix b/packetmix/systems/teal/copyparty.nix index 825d230d..133e7d90 100644 --- a/packetmix/systems/teal/copyparty.nix +++ b/packetmix/systems/teal/copyparty.nix @@ -123,6 +123,12 @@ "minion" ]; }; + + flags = { + chmod_f = "770"; + chmod_d = "770"; + gid = "974"; + }; }; }; }; @@ -287,10 +293,13 @@ virtualHosts = [ "internal.files.freshly.space" ]; }; - users.groups."copyparty+kavita".members = [ - "copyparty" - "kavita" - ]; + users.groups."copyparty+kavita" = { + gid = 974; # Copied from random assignment on teal. Entirely arbitrary. + members = [ + "copyparty" + "kavita" + ]; + }; clicks.storage.impermanence.persist.directories = [ "/var/lib/copyparty" -- 2.43.0