From b8bb5f291a4131e94b1a49b15d2735fcff581fa3 Mon Sep 17 00:00:00 2001 From: Bryton Hall Date: Sun, 10 Jul 2022 02:17:37 -0400 Subject: [PATCH] xdg-desktop-entries: allow icon path type --- modules/misc/xdg-desktop-entries.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/misc/xdg-desktop-entries.nix b/modules/misc/xdg-desktop-entries.nix index e5038c3f7..3274f6ec9 100644 --- a/modules/misc/xdg-desktop-entries.nix +++ b/modules/misc/xdg-desktop-entries.nix @@ -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."; };