From e1ee5023e2273fab99fc38d745676cea7d751952 Mon Sep 17 00:00:00 2001 From: Jonas Nick Date: Fri, 3 May 2019 10:44:16 +0000 Subject: [PATCH] Rename service settings for 'node' to 'nodejs' to avoid confusion --- modules/lightning-charge.nix | 2 +- modules/nanopos.nix | 2 +- modules/nix-bitcoin-services.nix | 4 ++-- modules/spark-wallet.nix | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/lightning-charge.nix b/modules/lightning-charge.nix index a6d6b19..bd0e371 100644 --- a/modules/lightning-charge.nix +++ b/modules/lightning-charge.nix @@ -39,7 +39,7 @@ in { Restart = "on-failure"; RestartSec = "10s"; } // nix-bitcoin-services.defaultHardening - // nix-bitcoin-services.node + // nix-bitcoin-services.nodejs // nix-bitcoin-services.allowTor; }; }; diff --git a/modules/nanopos.nix b/modules/nanopos.nix index 729f65c..300da4b 100644 --- a/modules/nanopos.nix +++ b/modules/nanopos.nix @@ -75,7 +75,7 @@ in { Restart = "on-failure"; RestartSec = "10s"; } // nix-bitcoin-services.defaultHardening - // nix-bitcoin-services.node + // nix-bitcoin-services.nodejs // nix-bitcoin-services.allowTor; }; }; diff --git a/modules/nix-bitcoin-services.nix b/modules/nix-bitcoin-services.nix index ac687cc..685d668 100644 --- a/modules/nix-bitcoin-services.nix +++ b/modules/nix-bitcoin-services.nix @@ -21,8 +21,8 @@ let in { inherit defaultHardening; - # node applications apparently rely on memory write execute - node = { MemoryDenyWriteExecute = "false"; }; + # nodejs applications apparently rely on memory write execute + nodejs = { MemoryDenyWriteExecute = "false"; }; # Allow tor traffic. Allow takes precedence over Deny. allowTor = { IPAddressAllow = "127.0.0.1/32 ::1/128"; diff --git a/modules/spark-wallet.nix b/modules/spark-wallet.nix index 2a6de71..e2d6226 100644 --- a/modules/spark-wallet.nix +++ b/modules/spark-wallet.nix @@ -65,7 +65,7 @@ in { Restart = "on-failure"; RestartSec = "10s"; } // nix-bitcoin-services.defaultHardening - // nix-bitcoin-services.node + // nix-bitcoin-services.nodejs // nix-bitcoin-services.allowTor; }; };