functionality/*: replace deprecated string type
This commit is contained in:
parent
8ffe22d7f8
commit
bdd91a83cc
2 changed files with 6 additions and 6 deletions
|
@ -7,7 +7,7 @@ in
|
||||||
{
|
{
|
||||||
options.services.ensure = with types; {
|
options.services.ensure = with types; {
|
||||||
enable = mkBoolOpt true;
|
enable = mkBoolOpt true;
|
||||||
directories = mkOpt (listOf string) [ ];
|
directories = mkOpt (listOf str) [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
config.systemd.services = {
|
config.systemd.services = {
|
||||||
|
|
|
@ -8,13 +8,13 @@ in
|
||||||
enable = mkEnableOption "SSH tunneling service";
|
enable = mkEnableOption "SSH tunneling service";
|
||||||
|
|
||||||
server = mkOption {
|
server = mkOption {
|
||||||
type = with types; uniq string;
|
type = with types; uniq str;
|
||||||
default = null;
|
default = null;
|
||||||
description = "The SSH server to connect for port forwarding";
|
description = "The SSH server to connect for port forwarding";
|
||||||
};
|
};
|
||||||
|
|
||||||
requiredBy = mkOption {
|
requiredBy = mkOption {
|
||||||
type = with types; listOf string;
|
type = with types; listOf str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "List of systemd services that require the SSH tunnels";
|
description = "List of systemd services that require the SSH tunnels";
|
||||||
};
|
};
|
||||||
|
@ -23,17 +23,17 @@ in
|
||||||
type = types.submodule {
|
type = types.submodule {
|
||||||
options = {
|
options = {
|
||||||
dynamic = mkOption {
|
dynamic = mkOption {
|
||||||
type = with types; listOf (either port string);
|
type = with types; listOf (either port str);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "List of dynamic ports to open through the ssh tunnel. See ssh(1) for ``-D``";
|
description = "List of dynamic ports to open through the ssh tunnel. See ssh(1) for ``-D``";
|
||||||
};
|
};
|
||||||
local = mkOption {
|
local = mkOption {
|
||||||
type = with types; listOf (either port string);
|
type = with types; listOf (either port str);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "List of local ports to open through the ssh tunnel. See ssh(1) for ``-L``";
|
description = "List of local ports to open through the ssh tunnel. See ssh(1) for ``-L``";
|
||||||
};
|
};
|
||||||
remote = mkOption {
|
remote = mkOption {
|
||||||
type = with types; listOf (either port string);
|
type = with types; listOf (either port str);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "List of remote ports to open through the ssh tunnel. See ssh(1) for ``-R``";
|
description = "List of remote ports to open through the ssh tunnel. See ssh(1) for ``-R``";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue