From 2788edf8f6ddc0a5ccd141db51321cd21abb5adf Mon Sep 17 00:00:00 2001 From: sefidel Date: Mon, 6 Feb 2023 18:08:33 +0900 Subject: feat: merge colmena to nixos --- nixos/cobalt/services/soju.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nixos/cobalt/services/soju.nix (limited to 'nixos/cobalt/services/soju.nix') diff --git a/nixos/cobalt/services/soju.nix b/nixos/cobalt/services/soju.nix new file mode 100644 index 0000000..c150879 --- /dev/null +++ b/nixos/cobalt/services/soju.nix @@ -0,0 +1,26 @@ +{ + services.soju = { + enable = true; + extraGroups = [ "acme" ]; + hostName = "cobalt.sefidel.com"; + listen = [ + ":6697" + ]; + tlsCertificate = "/var/lib/acme/sefidel.com/cert.pem"; + tlsCertificateKey = "/var/lib/acme/sefidel.com/key.pem"; + }; + + networking.firewall.allowedTCPPorts = [ 6697 ]; + + environment.persistence."/persist".directories = [ + "/var/lib/private/soju" + ]; + + # TODO: remove this once merged + disabledModules = [ "services/networking/soju.nix" ]; + + imports = [ + ./acme.nix + ../modules/soju.nix + ]; +} -- cgit 1.4.1