mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51: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;
|
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 {
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue