From 652a6c4a970f8aecb28f0135a2984b3edd5b460a Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Mon, 28 Jul 2025 21:54:03 +0200 Subject: [PATCH] use type `nonEmptyStr` instead of `str` when possible --- modules/system/services/gatus.nix | 2 +- modules/system/wifi.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/system/services/gatus.nix b/modules/system/services/gatus.nix index f01856a..4a71d43 100644 --- a/modules/system/services/gatus.nix +++ b/modules/system/services/gatus.nix @@ -15,7 +15,7 @@ in default = name; }; group = lib.mkOption { - type = lib.types.nullOr lib.types.str; + type = lib.types.nullOr lib.types.nonEmptyStr; default = null; }; url = lib.mkOption { diff --git a/modules/system/wifi.nix b/modules/system/wifi.nix index 2cafecc..6d57810 100644 --- a/modules/system/wifi.nix +++ b/modules/system/wifi.nix @@ -11,7 +11,7 @@ in options.custom.wifi = { enable = lib.mkEnableOption ""; 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; }; };