From c57eb7b2e9bcc263e3279cf118ea397866bbf5d5 Mon Sep 17 00:00:00 2001 From: "Simon R. - fantomitechno" Date: Fri, 26 Jun 2026 15:45:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=EF=B8=8F=20=F0=9F=8F=97=EF=B8=8F=20Ch?= =?UTF-8?q?ange=20copyparty=20from=20an=20input=20to=20a=20tarball?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.nix | 5 +++++ modules/nas/copyparty.nix | 23 +++++++++-------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/flake.nix b/flake.nix index 40262d1..6b44ac1 100644 --- a/flake.nix +++ b/flake.nix @@ -28,6 +28,11 @@ url = "github:Kljunas2/activate-linux"; inputs.nixpkgs.follows = "nixpkgs"; }; + + inputs.copyparty = { + url = "github:9001/copyparty?tag=v1.20.16"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/modules/nas/copyparty.nix b/modules/nas/copyparty.nix index 7688047..3b7f0c6 100644 --- a/modules/nas/copyparty.nix +++ b/modules/nas/copyparty.nix @@ -1,28 +1,19 @@ { dotfileFolder, + flakes, ... }: -let - copyparty = fetchTarball { - url = "https://github.com/9001/copyparty/releases/download/v1.20.16/copyparty-1.20.16.tar.gz"; - sha256 = "04ym88n720svqmp8ffmsymav1mn30s6ikgfnqy42nh11205v22s1"; - }; -in -{ - # load the copyparty NixOS module - imports = [ "${copyparty}/contrib/nixos/modules/copyparty.nix" ]; - - # add the copyparty overlay to expose the package to the module - nixpkgs.overlays = [ (import "${copyparty}/contrib/package/nix/overlay.nix") ]; +{ services.copyparty = { enable = true; user = "copyparty"; group = "copyparty"; settings = { - i = "127.0.0.1"; + i = "172.16.20.10"; p = [ 3210 + 3211 ]; no-reload = true; ignored-flag = false; @@ -36,7 +27,7 @@ in volumes = { "/public" = { - path = "/mnt/data/public"; + # path = "" access = { r = "*"; @@ -49,4 +40,8 @@ in }; }; }; + + nixpkgs = { + overlays = [ flakes.inputs.copyparty.overlays.default ]; + }; } -- 2.51.2