mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
use type nonEmptyStr instead of str when possible
This commit is contained in:
parent
37d6ce2e44
commit
652a6c4a97
2 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue