simplify ExecStart

This commit is contained in:
Erik Arvstedt 2020-04-07 23:04:58 +02:00
parent 64fc63cc40
commit 47fd6cd0f3
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -41,9 +41,6 @@ let
# Extra config options (from bitcoind nixos service)
${cfg.extraConfig}
'';
cmdlineOptions = concatMapStringsSep " " (arg: "'${arg}'") [
"-datadir=${cfg.dataDir}"
];
hexStr = types.strMatching "[0-9a-f]+";
rpcUserOpts = { name, ... }: {
options = {
@ -282,7 +279,7 @@ in {
serviceConfig = {
User = "${cfg.user}";
Group = "${cfg.group}";
ExecStart = "${cfg.package}/bin/bitcoind ${cmdlineOptions}";
ExecStart = "${cfg.package}/bin/bitcoind -datadir='${cfg.dataDir}'";
Restart = "on-failure";
# Hardening measures