nyxt: use mustache template for themeing

This commit is contained in:
Evie Litherland-Smith 2024-02-09 06:52:24 +00:00
parent 9ef93d0716
commit 9c0b8ba2fd

View file

@ -1,9 +1,20 @@
{pkgs, ...}: {
{
config,
pkgs,
...
}: {
home.packages = [pkgs.nyxt];
xdg = {
configFile = {
"nyxt/config.lisp".source = ./config.lisp;
"nyxt/theme.lisp".source = ./default.mustache;
"nyxt/config.lisp".text = ''
;; Import stylix theme
(nyxt::load-lisp "${config.lib.stylix.colors {
template = ./default.mustache;
extension = ".lisp";
}}")
;; Import custom configuration
(nyxt::load-lisp "${./config.lisp}")
'';
};
dataFile."nyxt/bookmarks.lisp".source = ./bookmarks.lisp;
};