add nix-bitcoin.nix for backwards compatibility

This commit is contained in:
Erik Arvstedt 2020-04-07 22:47:33 +02:00
parent 28792f79dc
commit 0f8b2e91fd
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 5 additions and 11 deletions

3
modules/nix-bitcoin.nix Normal file
View File

@ -0,0 +1,3 @@
# This file exists only for backwards compatibility
import ./presets/secure-node.nix

View File

@ -17,17 +17,8 @@ let
in {
imports = [ ../modules.nix ];
options.services.nix-bitcoin = {
enable = mkOption {
type = types.bool;
default = false;
description = ''
If enabled, the nix-bitcoin service will be installed.
'';
};
};
config = mkIf cfg.enable {
config = {
# For backwards compatibility only
nix-bitcoin.secretsDir = mkDefault "/secrets";
networking.firewall.enable = true;