add copyparty

This commit is contained in:
2025-10-14 13:19:24 -05:00
parent 8c19c9a228
commit 9f6d24f885
2 changed files with 61 additions and 12 deletions

View File

@@ -10,6 +10,7 @@
sec = config.sops.secrets;
homelab = config.modules.homelab;
in {
imports = [inputs.copyparty.nixosModules.default];
options.holocron.${service} = {
enable = lib.mkEnableOption "enables ${service}";
@@ -42,8 +43,6 @@ in {
};
config = lib.mkIf cfg.enable {
imports = [inputs.copyparty.nixosModules.default];
# declare ${service} group
users.groups.${service} = {
gid = lib.mkForce cfg.ids;
@@ -75,12 +74,12 @@ in {
};
};
# # override umask to make permissions work out
# systemd.services.${service}.serviceConfig = {
# UMask = lib.mkForce "0007";
# # User = service;
# # Group = service;
# };
# # 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];