~sumner/nixos-configuration

28fcea0c04bcc61993f5aad4f66380d09b160e3a — Sumner Evans 6 months ago 2f74bd2 heisenbridge
thelounge: deprecate

Fixes #36
4 files changed, 1 insertions(+), 44 deletions(-)

M README.md
M host-configurations/bespin.nix
M modules/services/default.nix
D modules/services/thelounge.nix
M README.md => README.md +1 -1
@@ 25,8 25,8 @@ https://git.sr.ht/~sumner/home-manager-config
    * [Quassel](https://quassel-irc.org/)
    * [Synapse](https://github.com/matrix-org/synapse) for
      [Matrix](https://matrix.org)
      * [Heisenbridge](https://github.com/hifi/heisenbridge)
    * [Syncthing](https://syncthing.net)
    * [The Lounge](https://thelounge.chat/)
    * [Wireguard](https://www.wireguard.com/)
    * [Xandikos](https://www.xandikos.org/)


M host-configurations/bespin.nix => host-configurations/bespin.nix +0 -1
@@ 67,7 67,6 @@
  services.longview.enable = true;
  services.murmur.enable = true;
  services.syncthing.enable = true;
  services.thelounge.enable = true;
  services.xandikos.enable = true;

  # Synapse

M modules/services/default.nix => modules/services/default.nix +0 -1
@@ 20,7 20,6 @@
    ./restic.nix
    ./sshd.nix
    ./syncthing.nix
    ./thelounge.nix
    ./xandikos.nix
  ];
}

D modules/services/thelounge.nix => modules/services/thelounge.nix +0 -41
@@ 1,41 0,0 @@
{ config, lib, ... }:
let
  loungeHome = "/var/lib/thelounge";
  serverName = "irc.${config.networking.domain}";
  theloungeCfg = config.services.thelounge;
in
lib.mkIf theloungeCfg.enable {
  services.thelounge = {
    private = true;
    extraConfig = {
      reverseProxy = true;
      theme = "morning";
      defaults = {
        name = "Freenode";
        host = "chat.freenode.net";
        port = 6697;
        tls = true;
      };
    };
  };

  users.users.thelounge = {
    useDefaultShell = true;
    home = loungeHome;
  };

  # Set up nginx to forward requests properly.
  services.nginx.virtualHosts = {
    "${serverName}" = {
      enableACME = true;
      forceSSL = true;

      locations."/".proxyPass = "http://127.0.0.1:9000";
    };
  };

  # Add a backup service.
  services.backup.backups.lounge = {
    path = loungeHome;
  };
}