···
···
options.services.anki-sync-server = {
44
-
enable = mkEnableOption (lib.mdDoc "anki-sync-server");
43
+
enable = mkEnableOption "anki-sync-server";
46
-
package = mkOption {
47
-
type = types.package;
48
-
default = pkgs.anki-sync-server;
49
-
defaultText = literalExpression "pkgs.anki-sync-server";
50
-
description = lib.mdDoc "The package to use for the anki-sync-server command.";
45
+
package = mkPackageOption pkgs "anki-sync-server" { };
56
-
description = lib.mdDoc ''
IP address anki-sync-server listens to.
Note host names are not resolved.
···
65
-
description = lib.mdDoc "port anki-sync-server listens to";
59
+
description = "Port number anki-sync-server listens to.";
openFirewall = mkOption {
71
-
description = lib.mdDoc "Whether to open the firewall for the specified port.";
65
+
description = "Whether to open the firewall for the specified port.";
···
80
-
description = lib.mdDoc "User name accepted by anki-sync-server.";
74
+
description = "User name accepted by anki-sync-server.";
85
-
description = lib.mdDoc ''
Password accepted by anki-sync-server for the associated username.
**WARNING**: This option is **not secure**. This password will
be stored in *plaintext* and will be visible to *all users*.
···
passwordFile = mkOption {
96
-
description = lib.mdDoc ''
File containing the password accepted by anki-sync-server for
the associated username. Make sure to make readable only by
···
104
-
description = lib.mdDoc "List of user-password pairs to provide to the sync server.";
98
+
description = "List of user-password pairs to provide to the sync server.";