add nix-bitcoin.nix for backwards compatibility
This commit is contained in:
parent
28792f79dc
commit
0f8b2e91fd
3
modules/nix-bitcoin.nix
Normal file
3
modules/nix-bitcoin.nix
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# This file exists only for backwards compatibility
|
||||||
|
|
||||||
|
import ./presets/secure-node.nix
|
@ -17,17 +17,8 @@ let
|
|||||||
in {
|
in {
|
||||||
imports = [ ../modules.nix ];
|
imports = [ ../modules.nix ];
|
||||||
|
|
||||||
options.services.nix-bitcoin = {
|
config = {
|
||||||
enable = mkOption {
|
# For backwards compatibility only
|
||||||
type = types.bool;
|
|
||||||
default = false;
|
|
||||||
description = ''
|
|
||||||
If enabled, the nix-bitcoin service will be installed.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
|
||||||
nix-bitcoin.secretsDir = mkDefault "/secrets";
|
nix-bitcoin.secretsDir = mkDefault "/secrets";
|
||||||
|
|
||||||
networking.firewall.enable = true;
|
networking.firewall.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user