homelab/hosts/sin/copyparty.nix
Awen Lelu 8ee5550803
All checks were successful
/ perform flake analysis (push) Successful in 31s
/ build hive configuration (push) Successful in 8m8s
added lan option to copyparty
2025-12-05 13:24:35 +01:00

35 lines
686 B
Nix

{ 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 ];
}