xdg-desktop-entries: allow icon path type

This commit is contained in:
Bryton Hall 2022-07-10 02:17:37 -04:00 committed by Robert Helgesson
parent c5fc157554
commit b8bb5f291a
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -38,7 +38,7 @@ let
icon = mkOption {
description = "Icon to display in file manager, menus, etc.";
type = types.nullOr types.str;
type = with types; nullOr (either str path);
default = null;
};
@ -133,7 +133,7 @@ let
description = "Program to execute, possibly with arguments.";
};
options.icon = mkOption {
type = types.nullOr types.str;
type = with types; nullOr (either str path);
default = null;
description = "Icon to display in file manager, menus, etc.";
};