Skip to content

Commit

Permalink
add nix-bitcoin.nix for backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt committed Apr 8, 2020
1 parent 28792f7 commit 0f8b2e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
3 changes: 3 additions & 0 deletions modules/nix-bitcoin.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# This file exists only for backwards compatibility

import ./presets/secure-node.nix
13 changes: 2 additions & 11 deletions modules/presets/secure-node.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0f8b2e9

Please sign in to comment.