treewide: use mkEnableOption
This commit is contained in:
parent
7a97304f13
commit
9cf038939c
|
@ -21,13 +21,7 @@ let
|
|||
'';
|
||||
in {
|
||||
options.services.clightning = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
If enabled, the clightning service will be installed.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "clightning";
|
||||
address = mkOption {
|
||||
type = types.str;
|
||||
default = "127.0.0.1";
|
||||
|
|
|
@ -37,13 +37,7 @@ let
|
|||
in {
|
||||
|
||||
options.services.lnd = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
If enabled, the LND service will be installed.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "Lightning Network Daemon";
|
||||
dataDir = mkOption {
|
||||
type = types.path;
|
||||
default = "/var/lib/lnd";
|
||||
|
|
|
@ -41,13 +41,7 @@ let
|
|||
'';
|
||||
in {
|
||||
options.services.recurring-donations = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
If enabled, the recurring-donations service will be installed.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "recurring-donations";
|
||||
tallycoin = mkOption {
|
||||
type = types.attrs;
|
||||
default = {};
|
||||
|
|
|
@ -23,13 +23,7 @@ let
|
|||
'';
|
||||
in {
|
||||
options.services.spark-wallet = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
If enabled, the spark-wallet service will be installed.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "spark-wallet";
|
||||
address = mkOption {
|
||||
type = types.str;
|
||||
default = "localhost";
|
||||
|
|
Loading…
Reference in New Issue
Block a user