homelab/hosts/sin/copyparty.nix
shobu f06e325736
All checks were successful
/ perform flake analysis (push) Successful in 1m24s
/ build hive configuration (push) Successful in 9m9s
add copyparty to starr group
mount nix store in runner container
2025-12-17 17:51:34 +01:00

37 lines
716 B
Nix

{ inputs, pkgs, config, ... }:
{
imports = [ inputs.copyparty.nixosModules.default ];
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
environment.systemPackages = [ pkgs.copyparty ];
services.copyparty = {
enable = true;
group = "starr";
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 ];
}