2022-03-13 11:46:00 +01:00
|
|
|
{ lib, ... }:
|
2022-03-10 20:59:18 +01:00
|
|
|
self: super:
|
2022-03-13 11:46:00 +01:00
|
|
|
let
|
|
|
|
allThemes = self.callPackage (import ../themes/themes.nix) { };
|
2022-05-10 18:00:16 +02:00
|
|
|
# currentTheme = "github-light";
|
2022-09-18 01:00:32 +02:00
|
|
|
currentTheme = "catppuccin-latte";
|
2022-03-13 11:46:00 +01:00
|
|
|
in
|
2022-03-10 20:59:18 +01:00
|
|
|
with self; {
|
|
|
|
myHelpers = self.callPackage (import ../helpers.nix) { };
|
2022-03-13 11:46:00 +01:00
|
|
|
myThemes = {
|
|
|
|
all = allThemes;
|
|
|
|
current = lib.lists.findFirst (theme: theme.name == currentTheme)
|
|
|
|
(throw ''
|
|
|
|
Theme "${currentTheme}" not found.
|
|
|
|
Available themes are:
|
|
|
|
${lib.lists.foldr (current: prev: if prev == ""
|
|
|
|
then current.name
|
|
|
|
else "${current.name}, ${prev}") "" allThemes}
|
|
|
|
'')
|
|
|
|
allThemes;
|
|
|
|
};
|
2022-03-10 20:59:18 +01:00
|
|
|
}
|
2022-03-13 11:46:00 +01:00
|
|
|
|