changed reticulum home to work with permissions of reticulum user
This commit is contained in:
parent
e74af2b8e4
commit
ada9be73f5
1 changed files with 9 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
{
|
{
|
||||||
environment.systemPackages = [ pkgs.python3Packages.rns ];
|
environment.systemPackages = [ pkgs.python3Packages.rns ];
|
||||||
|
|
||||||
environment.etc."reticulum/config".text = ''
|
environment.etc."reticulum-config".text = ''
|
||||||
[reticulum]
|
[reticulum]
|
||||||
enable_transport = True
|
enable_transport = True
|
||||||
share_instance = Yes
|
share_instance = Yes
|
||||||
|
|
@ -33,12 +33,19 @@
|
||||||
description = "Reticulum Network Stack daemon";
|
description = "Reticulum Network Stack daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
|
preStart = ''
|
||||||
|
mkdir -p /var/lib/reticulum/.reticulum
|
||||||
|
cp /etc/reticulum-config /var/lib/reticulum/.reticulum/config
|
||||||
|
chmod 600 /var/lib/reticulum/.reticulum/config
|
||||||
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "reticulum";
|
User = "reticulum";
|
||||||
ExecStart = "${pkgs.python3Packages.rns}/bin/rnsd --config /etc/reticulum";
|
ExecStart = "${pkgs.python3Packages.rns}/bin/rnsd";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = "5s";
|
RestartSec = "5s";
|
||||||
|
Environment = "HOME=/var/lib/reticulum";
|
||||||
|
StateDirectory = "reticulum";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue