refactor(copyparty): inline guest state mount path

This commit is contained in:
2026-10-13 12:00:03 -04:00
parent 5f1943160e
commit 6d8c8f67f4

View File

@@ -5,7 +5,6 @@
}: }:
let let
cfg = config.guests.copyparty; # NOLINT(let_order) cfg = config.guests.copyparty; # NOLINT(let_order)
stateDir = "/var/lib/copyparty";
in in
{ {
options.guests.copyparty = { options.guests.copyparty = {
@@ -110,7 +109,7 @@ in
}; };
mounts = { mounts = {
${stateDir} = { ${"/var/lib/copyparty"} = {
directory = cfg.statePath; directory = cfg.statePath;
owner = config.registry."stable-uid".${config.networking.hostName}.copyparty; owner = config.registry."stable-uid".${config.networking.hostName}.copyparty;
group = "storage"; group = "storage";