{ inputs, pkgs, ... }: { imports = [ inputs.copyparty.nixosModules.default ]; nixpkgs.overlays = [ inputs.copyparty.overlays.default ]; environment.systemPackages = [ pkgs.copyparty ]; services.copyparty = { enable = true; settings = { p = [ 8086 ]; e2dsa = true; e2ts = true; z = true; qr = true; xff-hdr = "X-Real-IP"; xff-src = "lan"; rproxy = 1; http-only = true; og = true; shr = "/shares"; }; volumes = { "/media" = { path = "/mnt/mediacenter/media"; access = { r = "*"; }; }; }; }; networking.firewall.allowedTCPPorts = [ 8086 ]; }