From 30b4700d3b838c9f0fecad860aca6b0ec374a747 Mon Sep 17 00:00:00 2001 From: seth Date: Thu, 7 Sep 2023 17:40:51 -0400 Subject: flake: use cool module arguments --- nix/module.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'nix/module.nix') diff --git a/nix/module.nix b/nix/module.nix index 10f09c3..abf348e 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -10,7 +10,7 @@ self: { (lib) literalExpression mkDefault - mkDoc + mdDoc mkEnableOption mkIf mkMerge @@ -24,12 +24,12 @@ self: { hostPortSubmodule = { options = { host = mkOption { - description = mkDoc "the hostname"; + description = mdDoc "the hostname"; type = types.str; }; port = mkOption { - description = mkDoc "the port"; + description = mdDoc "the port"; type = types.port; }; }; @@ -39,7 +39,7 @@ in { enable = mkEnableOption "guzzle-api"; listen = mkOption { - description = mkDoc "address and port to listen to"; + description = mdDoc "address and port to listen to"; type = types.submodule hostPortSubmodule; default = { host = "localhost"; @@ -54,12 +54,12 @@ in { }; domain = mkOption { - description = mkDoc "FQDN for guzzle_api endpoint"; + description = mdDoc "FQDN for guzzle_api endpoint"; type = types.str; }; nginx = mkOption { - description = mkDoc '' + description = mdDoc '' With this option, you can customize an nginx virtual host which already has sensible defaults for Dolibarr. Set to {} if you do not need any customization to the virtual host. If enabled, then by default, the {option}`serverName` is -- cgit v1.2.3