Skip to content

Commit 05cd342

Browse files
committed
kitty: fromJSON to importJSON
1 parent cbdf1c1 commit 05cd342

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

modules/programs/kitty.nix

+2-3
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ in {
7373
let value = lib.getAttrFromPath [ "programs" "kitty" "theme" ] config;
7474
in if value != null then
7575
(let
76-
matching = lib.filter (x: x.name == value) (builtins.fromJSON
77-
(builtins.readFile
78-
"${pkgs.kitty-themes}/share/kitty-themes/themes.json"));
76+
matching = lib.filter (x: x.name == value) (lib.importJSON
77+
"${pkgs.kitty-themes}/share/kitty-themes/themes.json");
7978
in lib.throwIf (lib.length matching == 0)
8079
"kitty-themes does not contain a theme named ${value}"
8180
lib.strings.removeSuffix ".conf"

0 commit comments

Comments
 (0)