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