We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbdf1c1 commit 05cd342Copy full SHA for 05cd342
modules/programs/kitty.nix
@@ -73,9 +73,8 @@ in {
73
let value = lib.getAttrFromPath [ "programs" "kitty" "theme" ] config;
74
in if value != null then
75
(let
76
- matching = lib.filter (x: x.name == value) (builtins.fromJSON
77
- (builtins.readFile
78
- "${pkgs.kitty-themes}/share/kitty-themes/themes.json"));
+ matching = lib.filter (x: x.name == value) (lib.importJSON
+ "${pkgs.kitty-themes}/share/kitty-themes/themes.json");
79
in lib.throwIf (lib.length matching == 0)
80
"kitty-themes does not contain a theme named ${value}"
81
lib.strings.removeSuffix ".conf"
0 commit comments