From 009d00d3e5932efa1f7371af19f1e8021d5aafb1 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Fri, 19 Jun 2020 12:30:34 +0200 Subject: machines/legosi: wrapExecStart weechat with ip2unix for bitlbee --- machines/profpatsch/legosi.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'machines/profpatsch/legosi.nix') diff --git a/machines/profpatsch/legosi.nix b/machines/profpatsch/legosi.nix index 622aad13..31ea926a 100644 --- a/machines/profpatsch/legosi.nix +++ b/machines/profpatsch/legosi.nix @@ -49,11 +49,31 @@ in { vuizvui.programs.profpatsch.weechat = { enable = true; authorizedKeys = [ myKey ]; + # redirect the bitlbee unix socket to a fake domain + # because + wrapExecStart = [ + "${pkgs.ip2unix}/bin/ip2unix" + "-r" + "addr=1.2.3.4,port=6667,path=${config.vuizvui.services.profpatsch.bitlbee.socketFile}" + ]; }; users.users.weechat.extraGroups = [ "bitlbee" ]; vuizvui.services.profpatsch.bitlbee = { enable = true; }; + + # services.nginx = { + # enable = true; + # virtualHosts.${"profpatsch.de"} = { + # forceSSL = true; + # enableACME = true; + # locations."/" = { + # index = "index.html"; + # }; + # serverAliases = [ "lojbanistan.de" ]; + # }; + # }; + }; } -- cgit 1.4.1