galanthus: Cleanup, add Copyparty

This commit is contained in:
Jan Kremer 2026-02-02 23:11:28 +01:00
parent be4409abcb
commit fe8273c4d3
No known key found for this signature in database
16 changed files with 103 additions and 265 deletions

View file

@ -0,0 +1,46 @@
{
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 = { };
};
};
};
}