use type nonEmptyStr instead of str when possible

This commit is contained in:
SebastianStork 2025-07-28 21:54:03 +02:00
parent 37d6ce2e44
commit 652a6c4a97
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ in
default = name; default = name;
}; };
group = lib.mkOption { group = lib.mkOption {
type = lib.types.nullOr lib.types.str; type = lib.types.nullOr lib.types.nonEmptyStr;
default = null; default = null;
}; };
url = lib.mkOption { url = lib.mkOption {

View file

@ -11,7 +11,7 @@ in
options.custom.wifi = { options.custom.wifi = {
enable = lib.mkEnableOption ""; enable = lib.mkEnableOption "";
networks = lib.mkOption { networks = lib.mkOption {
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.nonEmptyStr;
default = config.custom.sops.secrets.iwd |> lib.attrNames; default = config.custom.sops.secrets.iwd |> lib.attrNames;
}; };
}; };