From 19ac0c1f66d3fa5d6615307f33300f5d56f5322c Mon Sep 17 00:00:00 2001 From: satr14 Date: Sun, 19 Jul 2026 18:25:26 +0700 Subject: [PATCH] add copyparty to shell PATH --- modules/system/homelab/cdn.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/system/homelab/cdn.nix b/modules/system/homelab/cdn.nix index 573f55c..f06114a 100644 --- a/modules/system/homelab/cdn.nix +++ b/modules/system/homelab/cdn.nix @@ -6,7 +6,11 @@ url = "https://github.com/9001/copyparty/releases/download/${version}/copyparty-en.py"; hash = "sha256-8SBrKaLPat80n8sONKQYFeFSQXUnCYtwcOU7SR52h7E="; }; + executable = pkgs.writeShellScriptBin "copyparty" '' + exec ${python}/bin/python3 ${scriptSrc} "$@" + ''; in { + environment.systemPackages = [ executable ]; systemd.services.copyparty = { description = "File Sharing Service"; enable = true;