I found it slightly cumbersome to write a config when the only feedback OpenRC gives is `crashed`, so I added a small QOL function to run copyparty with the `--exit cfg` flag directly from the service.
Signed-off-by: charel <charel@lotsaspaghetti.com>
* nixos: use mkPackageOption instead of mkOption for the package option
This gets rid of a warning when trying to build a system with
documentation.nixos.includeAllModules enabled
* nixos: don't include package path in option descriptions
See https://github.com/9001/copyparty/pull/1193, this actually fixes the issue
* nixos: fix formatting of services.copyparty.volumes.<name>.access
List will now show up properly on the nixos manual!
* nixos: add or improve inline code blocks in option descriptions
assume launcher is in /usr/local/bin/ rather than /usr/bin
which is the case as of recently
Signed-off-by: Beethoven <44652883+Beethoven-n@users.noreply.github.com>
apparently the convention is that hotkeys should follow the letters
according to the layout, and not remain in the qwerty position
this breaks apart the cluster of media controls (uiojkl),
but that's the intended and expected behavior so it should be fine
Added an option, 'services.copyparty.globalExtraConfig', with default
value and description to the NixOS Module. The option type is 'str' and
the default value is the empty string.
This string is appened verbatim to the [global] section of the config.
This allows the use of settings which rely on repeated values to be
correctly used. For example, the: 'ipu: 255.255.255.1/32=user' key which
allows automatic sign in for users of a CIDR subnet. Because attribute
sets in Nix must have unique keys, it is not possible to set more than
one CIDR subnet/user pair.
Signed-off-by: xvrqt <git@xvrqt.com>