54 lines
854 B
Nix
54 lines
854 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
age.secrets."copyparty-jan" = {
|
|
file = ../secrets/copyparty-jan.age;
|
|
mode = "400";
|
|
owner = "copyparty";
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.copyparty ];
|
|
|
|
services.copyparty = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
# p = 3923;
|
|
z = true;
|
|
ed = true;
|
|
e2dsa = true;
|
|
e2ts = true;
|
|
daw = true; # WebDAV
|
|
};
|
|
|
|
accounts = {
|
|
jan.passwordFile = config.age.secrets.copyparty-jan.path;
|
|
};
|
|
|
|
groups = {
|
|
family = [ "jan" ];
|
|
};
|
|
|
|
volumes = {
|
|
"/" = {
|
|
path = "/mnt/sdb1/cloud";
|
|
access = {
|
|
A = [ "jan" ];
|
|
r = "*";
|
|
};
|
|
# flags = { };
|
|
};
|
|
|
|
"/Medien" = {
|
|
path = "/mnt/sdb1/media";
|
|
access = {
|
|
A = [ "jan" ];
|
|
r = "*";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|