nix-config/modules/nixos/copyparty.nix
2026-03-28 13:15:10 +01:00

55 lines
878 B
Nix

{
config,
pkgs,
...
}:
{
age.secrets."copyparty-jan" = {
file = ../secrets/copyparty-jan.age;
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/cloud";
access = {
A = [ "jan" ];
r = "*";
};
# flags = { };
};
"/Medien" = {
path = "/mnt/media";
access = {
A = [ "jan" ];
r = "*";
};
};
};
};
users.users.copyparty.extraGroups = [ "media" ];
}