From 9c0b8ba2fd11fe2de4433857350fc60ca61ff72c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 9 Feb 2024 06:52:24 +0000 Subject: [PATCH] nyxt: use mustache template for themeing --- home/nyxt/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/home/nyxt/default.nix b/home/nyxt/default.nix index 72036be6..71ec171d 100644 --- a/home/nyxt/default.nix +++ b/home/nyxt/default.nix @@ -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; };