89 lines
1.6 KiB
Nix
89 lines
1.6 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/copyparty/bug.passwd";
|
|
};
|
|
};
|
|
|
|
groups = {
|
|
g1 = [ "bug" ];
|
|
};
|
|
|
|
volumes = {
|
|
"/" = {
|
|
path = "/home/bug/copyparty/public/";
|
|
|
|
access = {
|
|
r = "*";
|
|
rwda = [ "bug" ];
|
|
};
|
|
|
|
flags = {
|
|
fk = 4;
|
|
scan = 60;
|
|
};
|
|
};
|
|
|
|
"/nix" = {
|
|
path = "/home/bug/nix/";
|
|
|
|
access = {
|
|
r = "*";
|
|
};
|
|
|
|
flags = {
|
|
fk = 4;
|
|
scan = 60;
|
|
};
|
|
};
|
|
|
|
"/box" = {
|
|
path = "/";
|
|
|
|
access = {
|
|
rwda = [ "bug" ];
|
|
};
|
|
};
|
|
|
|
"/Music" = {
|
|
path = "/home/bug/Music/";
|
|
|
|
access = {
|
|
r = "*";
|
|
rwda = [ "bug" ];
|
|
};
|
|
|
|
flags = {
|
|
fk = 4;
|
|
scan = 60;
|
|
};
|
|
};
|
|
};
|
|
|
|
openFilesLimit = 8192;
|
|
};
|
|
};
|
|
};
|
|
}
|