programs/gnome-session: set various options as nonEmptyStr type

This commit is contained in:
Gabriel Arazas 2024-01-04 16:58:49 +08:00
parent a2bf9a7e60
commit f7dd146de2
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -7,7 +7,7 @@ let
componentsType = { name, config, options, session, ... }: {
options = {
description = lib.mkOption {
type = lib.types.str;
type = lib.types.nonEmptyStr;
description = "One-sentence description of the component.";
default = "";
example = "Desktop widgets";
@ -250,14 +250,14 @@ let
sessionType = { name, config, options, ... }: {
options = {
fullName = lib.mkOption {
type = lib.types.str;
type = lib.types.nonEmptyStr;
description = "The (formal) name of the desktop environment.";
default = name;
example = "Mosey Branch";
};
description = lib.mkOption {
type = lib.types.str;
type = lib.types.nonEmptyStr;
description = ''
A one-sentence description of the desktop environment.
'';