Merge pull request #111423 from helsinki-systems/netatalk

nixos/netatalk: add types
This commit is contained in:
Sandro
2021-01-31 15:04:52 +01:00
committed by GitHub
@@ -46,6 +46,7 @@ in
enable = mkEnableOption "the Netatalk AFP fileserver"; enable = mkEnableOption "the Netatalk AFP fileserver";
port = mkOption { port = mkOption {
type = types.port;
default = 548; default = 548;
description = "TCP port to be used for AFP."; description = "TCP port to be used for AFP.";
}; };
@@ -68,6 +69,7 @@ in
}; };
path = mkOption { path = mkOption {
type = types.str;
default = ""; default = "";
example = "afp-data"; example = "afp-data";
description = "Share not the whole user home but this subdirectory path."; description = "Share not the whole user home but this subdirectory path.";
@@ -75,6 +77,7 @@ in
basedirRegex = mkOption { basedirRegex = mkOption {
example = "/home"; example = "/home";
type = types.str;
description = "Regex which matches the parent directory of the user homes."; description = "Regex which matches the parent directory of the user homes.";
}; };