clightning: add cli option

An executable is more robust to use than shell aliases.

This is also a preparation for commit 'add module test' because the
NixOS testing framework makes interactive aliases hard to use: It
unsets 'PS1' which is used by programs/bash/bash.nix to detect
interactive shells.
This commit is contained in:
Erik Arvstedt
2020-01-12 20:02:02 +01:00
parent b90bf6691b
commit 1833b15888
5 changed files with 19 additions and 7 deletions
+6 -1
View File
@@ -74,7 +74,12 @@ in {
description = "Get node info";
wantedBy = [ "multi-user.target" ];
after = [ "nodeinfo.service" ];
path = with pkgs; [ nix-bitcoin.nodeinfo nix-bitcoin.clightning jq sudo ];
path = with pkgs; [
nix-bitcoin.nodeinfo
config.services.clightning.cli
jq
sudo
];
serviceConfig = {
ExecStart="${pkgs.bash}/bin/bash ${createWebIndex}";
User = "root";