refactor(copyparty): remove unused wrapper options

This commit is contained in:
2026-10-12 22:41:32 -04:00
parent 372c19387a
commit 7a1086ef3b
3 changed files with 28 additions and 62 deletions

View File

@@ -6,6 +6,8 @@
let
cfg = config.guests.copyparty; # NOLINT(let_order)
stateDir = "/var/lib/copyparty";
volumeType = lib.types.submodule {
options = {
hostPath = lib.mkOption {
@@ -40,22 +42,10 @@ let
in
{
options.guests.copyparty = {
accountName = lib.mkOption {
type = lib.types.str;
default = "alexion";
description = "Copyparty account name configured for password authentication.";
};
passwordSecret = lib.mkOption {
type = lib.types.str;
default = "services/copyparty/users/alexion/password";
description = "SOPS secret name containing the Copyparty account password.";
};
stateDir = lib.mkOption {
type = lib.types.str;
default = "/var/lib/copyparty";
description = "Guest path where Copyparty stores service state.";
default = "services/copyparty/users/${config.user.name}/password";
description = "SOPS secret name that contains the Copyparty account password.";
};
statePath = lib.mkOption {
@@ -102,7 +92,6 @@ in
guests.copyparty = {
interior.modules.services.copyparty = {
enable = true;
inherit (cfg) accountName stateDir;
passwordFile = "/run/secrets/${cfg.passwordSecret}";
reverseProxy = {
enable = cfg.reverseProxy.enable;
@@ -119,7 +108,7 @@ in
};
mounts = {
${cfg.stateDir} = {
${stateDir} = {
directory = cfg.statePath;
owner = config.registry."stable-uid".${config.networking.hostName}.copyparty;
group = "storage";