Files
nix/modules/services/copyparty.nix
2026-03-03 17:05:04 -06:00

81 lines
1.5 KiB
Nix

{ inputs, ... }: {
den.aspects.copyparty = {
nixos = { config, ... }: {
imports = [ inputs.copyparty.nixosModules.default ];
nixpkgs.overlays = [ inputs.copyparty.overlays.default ];
den.tunnels = [ "files" ];
services.copyparty = {
enable = true;
user = "bug";
group = "copyparty";
settings = {
i = "0.0.0.0";
p = [ config.den.portmap.files (config.den.portmap.files + 1) ];
no-reload = true;
ignored-flag = false;
};
accounts = {
bug = {
passwordFile = "/home/bug/mailserver/bug.passwd";
};
};
groups = {
g1 = [ "bug" ];
};
volumes = {
"/" = {
path = "/srv/copyparty";
access = {
r = "*";
rw = [ "bug" ];
};
flags = {
fk = 4;
scan = 60;
};
};
"/music" = {
path = "/home/bug/Music/";
access = {
r = "*";
rw = [ "bug" ];
};
flags = {
fk = 4;
scan = 60;
};
};
/* "/sang" = {
path = "/srv/sang";
access = {
rw = [ "bug" ]; #"sang" ];
};
flags = {
fk = 4;
scan = 60;
};
}; */
};
openFilesLimit = 8192;
};
};
};
}