rename nodes and add runner for gitea instance
This commit is contained in:
31
hosts/sin/copyparty.nix
Normal file
31
hosts/sin/copyparty.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{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-src = "lan";
|
||||
http-only = true;
|
||||
og = true;
|
||||
shr = "/shares";
|
||||
};
|
||||
|
||||
volumes = {
|
||||
"/media" = {
|
||||
path = "/mnt/mediacenter/media";
|
||||
access = {
|
||||
r = "*";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
networking.firewall.allowedTCPPorts = [ 8086 ];
|
||||
}
|
||||
Reference in New Issue
Block a user