diff --git a/reticulum.nix b/reticulum.nix index 8fdba71..0d54d1c 100644 --- a/reticulum.nix +++ b/reticulum.nix @@ -1,7 +1,10 @@ { config, pkgs, lib, ... }: { - environment.systemPackages = [ pkgs.python3Packages.rns ]; + environment.systemPackages = [ + pkgs.python3Packages.rns + pkgs.python3Packages.lxmf + ]; environment.etc."reticulum-config".text = '' [reticulum] @@ -49,5 +52,21 @@ }; }; + systemd.services.lxmd = { + description = "LXMF Propagation Node daemon"; + wantedBy = [ "multi-user.target" ]; + after = [ "network.target" "rnsd.service" ]; + requires = [ "rnsd.service" ]; + serviceConfig = { + Type = "simple"; + User = "reticulum"; + ExecStart = "${pkgs.python3Packages.lxmf}/bin/lxmd -p"; + Restart = "on-failure"; + RestartSec = "5s"; + Environment = "HOME=/var/lib/reticulum"; + StateDirectory = "reticulum"; + }; + }; + networking.firewall.allowedTCPPorts = [ 25515 ]; } \ No newline at end of file