From 1596b3a5d299a75dd6f96f7fa699137e7fdeb2bd Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Tue, 7 Dec 2021 15:28:10 +0100 Subject: [PATCH] minor fixes - README: fix uppercase - bitcoind: add whitespace - hardware-wallets: remove unused variables --- README.md | 2 +- modules/bitcoind.nix | 2 ++ modules/hardware-wallets.nix | 2 -- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e123ea4..09f4b47 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Get started Docs --- -* [Hardware Requirements](docs/hardware.md) +* [Hardware requirements](docs/hardware.md) * [Installation](docs/install.md) * [Configuration and maintenance](docs/configuration.md) * [Using services](docs/services.md) diff --git a/modules/bitcoind.nix b/modules/bitcoind.nix index b38cf25..2d1ea64 100644 --- a/modules/bitcoind.nix +++ b/modules/bitcoind.nix @@ -398,10 +398,12 @@ in { install -o '${cfg.user}' -g '${cfg.group}' -m 640 <(echo "$cfg") $confFile fi ''; + # Enable RPC access for group postStart = '' chmod g=r '${cfg.dataDir}/${optionalString cfg.regtest "regtest/"}.cookie' ''; + serviceConfig = nbLib.defaultHardening // { Type = "notify"; NotifyAccess = "all"; diff --git a/modules/hardware-wallets.nix b/modules/hardware-wallets.nix index 807fb66..d8d2871 100644 --- a/modules/hardware-wallets.nix +++ b/modules/hardware-wallets.nix @@ -27,8 +27,6 @@ let }; cfg = config.services.hardware-wallets; - dataDir = "/var/lib/hardware-wallets/"; - enabled = cfg.ledger || cfg.trezor; in { inherit options;