diff options
author | lassulus <lassulus@lassul.us> | 2021-12-08 08:13:30 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-12-08 08:13:30 +0100 |
commit | 503c0176c1efca72e62ac3b0fee040d776108495 (patch) | |
tree | 78b3e8d2499192ec67343ee0eca13e95398dd3ba /makefu/2configs/dcpp/hub.nix | |
parent | 8d2f6fba252d6885c458c55ba45de8cc8a828ee6 (diff) | |
parent | 78930db930a3f222feb72d344ff4f9f581bcfad9 (diff) |
Merge remote-tracking branch 'gum/21.11' into 21.11
Diffstat (limited to 'makefu/2configs/dcpp/hub.nix')
-rw-r--r-- | makefu/2configs/dcpp/hub.nix | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/makefu/2configs/dcpp/hub.nix b/makefu/2configs/dcpp/hub.nix index 8b43b2fcf..b8ca49b74 100644 --- a/makefu/2configs/dcpp/hub.nix +++ b/makefu/2configs/dcpp/hub.nix @@ -39,7 +39,9 @@ in { home = stateDir; isSystemUser = true; createHome = true; + group = ddclientUser; }; + users.groups.${ddclientUser} = {}; systemd.services = { ddclient-nsupdate-uhub = { @@ -83,32 +85,33 @@ in { isSystemUser = true; group = "uhub"; }; - users.group.uhub = {}; + users.groups.uhub = {}; services.uhub.home = { enable = true; - port = 1511; enableTLS = true; - hubConfig = '' - hub_name = "krebshub" - tls_certificate = ${uhubDir}/uhub.crt - tls_private_key = ${uhubDir}/uhub.key - registered_users_only = true - ''; - plugins = { - welcome = { - enable = true; - motd = "shareit"; - rules = "1. Don't be an asshole"; - }; - history = { - enable = true; - }; - authSqlite = { - enable = true; - file = "${uhubDir}/uhub.sql"; - }; - + settings = { + server_port = 1511; + hub_name = "krebshub"; + tls_certificate = "${uhubDir}/uhub.crt"; + tls_private_key = "${uhubDir}/uhub.key"; + registered_users_only = true; }; + plugins = [ + { + plugin = "${pkgs.uhub}/plugins/mod_auth_sqlite.so"; + settings.file = "${uhubDir}/uhub.sql"; + } + { + plugin = "${pkgs.uhub}/plugins/mod_welcome.so"; + settings.motd = "shareit"; + settings.rules = "1. Don't be an asshole"; + } + { + plugin = "${pkgs.uhub}/plugins/mod_history.so"; + settings.motd = "shareit"; + settings.rules = "1. Don't be an asshole"; + } + ]; }; networking.firewall.allowedTCPPorts = [ 411 1511 ]; } |