From 47fd6cd0f3e4cc65f1d73e6e3022f14deb574c4f Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 7 Apr 2020 23:04:58 +0200 Subject: [PATCH] simplify ExecStart --- modules/bitcoind.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index 376f3f9..a1305e2 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -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