galanthus: Cleanup, add Copyparty
This commit is contained in:
parent
be4409abcb
commit
fe8273c4d3
16 changed files with 103 additions and 265 deletions
46
modules/nixos/copyparty.nix
Normal file
46
modules/nixos/copyparty.nix
Normal 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 = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue