mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-26 08:10:41 +03:00
18 lines
342 B
Nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|