about summary refs log tree commit diff
path: root/machines/profpatsch/legosi.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-06-19 12:30:34 +0200
committerProfpatsch <mail@profpatsch.de>2020-06-19 12:30:34 +0200
commit009d00d3e5932efa1f7371af19f1e8021d5aafb1 (patch)
treec878b17056108b45ed24a93b8e4b4d92492a4ed6 /machines/profpatsch/legosi.nix
parentc437da88720fa8226ac5f48efa51a17198a5449a (diff)
machines/legosi: wrapExecStart weechat with ip2unix for bitlbee
Diffstat (limited to 'machines/profpatsch/legosi.nix')
-rw-r--r--machines/profpatsch/legosi.nix20
1 files changed, 20 insertions, 0 deletions
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" ];
+    #   };
+    # };
+
   };
 }