add config to copyparty

This commit is contained in:
2025-10-14 15:46:16 -05:00
parent acadff6243
commit b688978b54
2 changed files with 48 additions and 26 deletions

View File

@@ -63,25 +63,45 @@ in {
# enable the ${service} service
services.${service} = {
enable = true;
# settings = {
# };
# accounts = {
# };
# groups = {
# };
# volumes = {
# flags = {
# };
# };
user = service;
group = service;
settings = {
i = "0.0.0.0";
p = [7902];
};
accounts = {
blake = {
passwordFile = sec."copyparty_passwd".path;
};
};
groups = {
media = ["blake"];
};
volumes = {
"/archives" = {
path = "/holocron/archives";
access = {
r = "*";
A = "blake";
};
};
"/media" = {
path = "/holocron/media";
access = {
r = "*";
w = "@media";
A = "blake";
};
};
"/users/blake" = {
path = "/holocron/users/blake";
access = {
A = "blake";
};
};
};
};
# # override umask to make permissions work out
# systemd.services.${service}.serviceConfig = {
# UMask = lib.mkForce "0007";
# # User = service;
# # Group = service;
# };
# open firewall
networking.firewall.allowedTCPPorts = [cfg.port];
@@ -104,13 +124,13 @@ in {
icon = "di:${service}";
}
];
#
# sops.secrets = {
# "${service}_" = {
# owner = ;
# group = ;
# };
# };
sops.secrets = {
"${service}_passwd" = {
owner = service;
group = service;
};
};
# add to backups
system.backups.baks = {