From e4d1fdc40d222301022f587dbc5b2f928080fe8b Mon Sep 17 00:00:00 2001 From: satr14 Date: Thu, 16 Apr 2026 19:48:06 +0700 Subject: [PATCH] copyparty service --- modules/system/homelab/cdn.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/system/homelab/cdn.nix b/modules/system/homelab/cdn.nix index a481800..8710072 100644 --- a/modules/system/homelab/cdn.nix +++ b/modules/system/homelab/cdn.nix @@ -1,5 +1,14 @@ { pkgs, ... }: { environment.systemPackages = with pkgs; [ copyparty-most ]; - # TODO: systemd service + systemd.services.copyparty = { + description = "File Sharing Service"; + after = [ "network.target" ]; + wantedBy = [ "multi-user.target" ]; + serviceConfig = { + ExecStart = "${pkgs.copyparty-most}/bin/copyparty -c /mnt/share/cfg/files.conf"; + Restart = "on-failure"; + User = "nobody"; + }; + }; }