add copyparty
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user