diff --git a/modules/clightning.nix b/modules/clightning.nix index 9c6f04d..db39498 100644 --- a/modules/clightning.nix +++ b/modules/clightning.nix @@ -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"; diff --git a/modules/lnd.nix b/modules/lnd.nix index 72f21f9..36b7089 100644 --- a/modules/lnd.nix +++ b/modules/lnd.nix @@ -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"; diff --git a/modules/recurring-donations.nix b/modules/recurring-donations.nix index 0feb2a1..830bf33 100644 --- a/modules/recurring-donations.nix +++ b/modules/recurring-donations.nix @@ -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 = {}; diff --git a/modules/spark-wallet.nix b/modules/spark-wallet.nix index 48db046..419cb3c 100644 --- a/modules/spark-wallet.nix +++ b/modules/spark-wallet.nix @@ -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";