Add guest user with same ssh keys as root and fix nodeinfo not waiting for clightning to warm up

This commit is contained in:
Jonas Nick 2018-11-23 15:49:13 +00:00
parent eca9864cf3
commit ac2be00c7f
4 changed files with 33 additions and 10 deletions

View file

@ -52,6 +52,8 @@ in {
{ description = "Run clightningd";
path = [ pkgs.clightning pkgs.bitcoin ];
wantedBy = [ "multi-user.target" ];
requires = [ "bitcoind.service" ];
after = [ "bitcoind.service" ];
preStart = ''
mkdir -p ${home}/.lightning
ln -sf ${configFile} ${home}/.lightning/config
@ -61,6 +63,7 @@ in {
ExecStart = "${pkgs.clightning}/bin/lightningd";
User = "clightning";
Restart = "on-failure";
RestartSec = "10s";
PrivateTmp = "true";
ProtectSystem = "full";
NoNewPrivileges = "true";