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;