added lxmd -p to reticulum making it a propagation node
This commit is contained in:
parent
ada9be73f5
commit
19281afb90
1 changed files with 20 additions and 1 deletions
|
|
@ -1,7 +1,10 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.python3Packages.rns ];
|
environment.systemPackages = [
|
||||||
|
pkgs.python3Packages.rns
|
||||||
|
pkgs.python3Packages.lxmf
|
||||||
|
];
|
||||||
|
|
||||||
environment.etc."reticulum-config".text = ''
|
environment.etc."reticulum-config".text = ''
|
||||||
[reticulum]
|
[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 ];
|
networking.firewall.allowedTCPPorts = [ 25515 ];
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue