nix-bitcoin/modules/nodeinfo.nix
2018-11-20 22:14:40 +00:00

18 lines
342 B
Nix

{ config, lib, pkgs, ... }:
with lib;
{
config = {
systemd.services.nodeinfo = {
description = "Get node info";
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.bash}/bin/bash -c ${pkgs.nodeinfo}/bin/nodeinfo";
user = "root";
type = "oneshot";
};
};
};
}