34 lines
663 B
Nix
34 lines
663 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";
|
|
rproxy = 1;
|
|
http-only = true;
|
|
og = true;
|
|
shr = "/shares";
|
|
};
|
|
|
|
volumes = {
|
|
"/media" = {
|
|
path = "/mnt/mediacenter/media";
|
|
access = {
|
|
r = "*";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8086 ];
|
|
}
|