From 5c022c024e96fa74db1a9e5b9fa7fdc95085a080 Mon Sep 17 00:00:00 2001 From: teesh3rt Date: Fri, 6 Feb 2026 19:50:34 +0200 Subject: [PATCH] chore: statix is annoying --- modules/server/copyparty.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/server/copyparty.nix b/modules/server/copyparty.nix index a3dde82..73dd298 100644 --- a/modules/server/copyparty.nix +++ b/modules/server/copyparty.nix @@ -33,14 +33,6 @@ in { nixpkgs.overlays = [inputs.copyparty.overlays.default]; environment.systemPackages = [pkgs.copyparty]; - services.copyparty.settings.xff-hdr = - if config.services.cloudflared.enable - then "cf-connecting-ip" - else null; - services.copyparty.settings.rproxy = - if config.services.cloudflared.enable - then 1 - else null; services.copyparty = { enable = true; settings = { @@ -50,6 +42,15 @@ in { e2d = true; e2t = true; shr = "/shr"; + + xff-hdr = + if config.services.cloudflared.enable + then "cf-connecting-ip" + else null; + rproxy = + if config.services.cloudflared.enable + then 1 + else null; }; accounts = { ilay.passwordFile = config.sops.secrets."copyparty/passwords/ilay".path;