diff --git a/hosts/nixos/lapetus/default.nix b/hosts/nixos/lapetus/default.nix index 53a9848..278e7f3 100644 --- a/hosts/nixos/lapetus/default.nix +++ b/hosts/nixos/lapetus/default.nix @@ -6,7 +6,7 @@ ./services/syncthing.nix ./services/whoogle.nix - ./services/znc.nix + ./services/soju.nix ./filesystems ./hardware ]; diff --git a/hosts/nixos/lapetus/services/soju.nix b/hosts/nixos/lapetus/services/soju.nix new file mode 100644 index 0000000..1e8c3c3 --- /dev/null +++ b/hosts/nixos/lapetus/services/soju.nix @@ -0,0 +1,9 @@ +{ + services.soju = { + enable = true; + extraConfig = '' + db sqlite3 /persist/state/soju/storage.db + message-store db + ''; + }; +} diff --git a/hosts/nixos/lapetus/services/znc.nix b/hosts/nixos/lapetus/services/znc.nix index 579b0b6..14d76fa 100644 --- a/hosts/nixos/lapetus/services/znc.nix +++ b/hosts/nixos/lapetus/services/znc.nix @@ -2,16 +2,16 @@ services.znc = { enable = true; # mutable = false; - confOptions = { - nick = "prescientmoon"; - networks.tilde = { - server = "eu.tilde.chat"; - port = 6697; - channels = [ "#meta" "#math" ]; - modules = [ - "simple_away" # marks me as away when disconnected - "sasl" # auto login - ]; + useLegacyConfig = false; + + config.User.prescientmoon = { + Network.tilde = { + Server = "eu.tilde.chat +6697"; + Chan."#meta" = { }; + Chan."#math" = { }; + Nick = "prescientmoon"; + LoadModule = [ "" ]; + JoinDelay = 2; # Avoid joining channels before auth }; }; };