feat(copyparty): add read-only root volume

This commit is contained in:
2026-09-14 22:50:45 -04:00
parent 6159d87d10
commit a73b59aa0a
4 changed files with 24 additions and 2 deletions

View File

@@ -24,6 +24,12 @@ let
description = "Copyparty access map from permission string to account names.";
};
readOnly = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Serve this Copyparty volume read-only.";
};
flags = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
@@ -94,7 +100,7 @@ in
inherit (cfg.reverseProxy) trustedSources;
};
volumes = lib.mapAttrs (_urlPath: volume: {
inherit (volume) path access flags;
inherit (volume) path access flags readOnly;
}) cfg.volumes;
};