simplify ExecStart
This commit is contained in:
parent
64fc63cc40
commit
47fd6cd0f3
@ -41,9 +41,6 @@ let
|
|||||||
# Extra config options (from bitcoind nixos service)
|
# Extra config options (from bitcoind nixos service)
|
||||||
${cfg.extraConfig}
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
cmdlineOptions = concatMapStringsSep " " (arg: "'${arg}'") [
|
|
||||||
"-datadir=${cfg.dataDir}"
|
|
||||||
];
|
|
||||||
hexStr = types.strMatching "[0-9a-f]+";
|
hexStr = types.strMatching "[0-9a-f]+";
|
||||||
rpcUserOpts = { name, ... }: {
|
rpcUserOpts = { name, ... }: {
|
||||||
options = {
|
options = {
|
||||||
@ -282,7 +279,7 @@ in {
|
|||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "${cfg.user}";
|
User = "${cfg.user}";
|
||||||
Group = "${cfg.group}";
|
Group = "${cfg.group}";
|
||||||
ExecStart = "${cfg.package}/bin/bitcoind ${cmdlineOptions}";
|
ExecStart = "${cfg.package}/bin/bitcoind -datadir='${cfg.dataDir}'";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
|
|
||||||
# Hardening measures
|
# Hardening measures
|
||||||
|
Loading…
Reference in New Issue
Block a user