This commit is contained in:
Toast 2026-01-12 02:32:11 +01:00 committed by GitHub
commit 4d0bd6db0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -79,7 +79,7 @@ in
type = types.bool; type = types.bool;
default = true; default = true;
description = '' description = ''
Make a shell script wrapper called 'copyparty-hash' with all options set here, Make a shell script wrapper called {command}`copyparty-hash` with all options set here,
that launches the hashing cli. that launches the hashing cli.
''; '';
}; };
@ -114,9 +114,9 @@ in
type = types.attrs; type = types.attrs;
description = '' description = ''
Global settings to apply. Global settings to apply.
Directly maps to values in the [global] section of the copyparty config. Directly maps to values in the `[global]` section of the copyparty config.
Cannot set "c" or "hist", those are set by this module. Cannot set "c" or "hist", those are set by this module.
See `${getExe cfg.package} --help` for more details. See {command}`copyparty --help` for more details.
''; '';
default = { default = {
i = "127.0.0.1"; i = "127.0.0.1";
@ -135,7 +135,7 @@ in
globalExtraConfig = mkOption { globalExtraConfig = mkOption {
type = types.str; type = types.str;
default = ""; default = "";
description = "Appended to the end of the [global] section verbatim. This is useful for flags which are used in a repeating manner (e.g. ipu: 255.255.255.1=user) which can't be repeated in the settings = {} attribute set."; description = "Appended to the end of the `[global]` section verbatim. This is useful for flags which are used in a repeating manner (e.g. `ipu: 255.255.255.1=user`) which can't be repeated in the settings = {} attribute set.";
}; };
accounts = mkOption { accounts = mkOption {
@ -198,21 +198,21 @@ in
Attribute list of permissions and the users to apply them to. Attribute list of permissions and the users to apply them to.
The key must be a string containing any combination of allowed permission: The key must be a string containing any combination of allowed permission:
"r" (read): list folder contents, download files * "r" (read): list folder contents, download files
"w" (write): upload files; need "r" to see the uploads * "w" (write): upload files; need "r" to see the uploads
"m" (move): move files and folders; need "w" at destination * "m" (move): move files and folders; need "w" at destination
"d" (delete): permanently delete files and folders * "d" (delete): permanently delete files and folders
"g" (get): download files, but cannot see folder contents * "g" (get): download files, but cannot see folder contents
"G" (upget): "get", but can see filekeys of their own uploads * "G" (upget): "get", but can see filekeys of their own uploads
"h" (html): "get", but folders return their index.html * "h" (html): "get", but folders return their index.html
"a" (admin): can see uploader IPs, config-reload * "a" (admin): can see uploader IPs, config-reload
For example: "rwmd" For example: "rwmd"
The value must be one of: The value must be one of:
an account name, defined in `accounts` * an account name, defined in `accounts`
a list of account names * a list of account names
"*", which means "any account" * "*", which means "any account"
''; '';
example = literalExpression '' example = literalExpression ''
{ {
@ -227,7 +227,7 @@ in
type = types.attrs; type = types.attrs;
description = '' description = ''
Attribute list of volume flags to apply. Attribute list of volume flags to apply.
See `${getExe cfg.package} --help-flags` for more details. See {command}`copyparty --help-flags` for more details.
''; '';
example = literalExpression '' example = literalExpression ''
{ {