2024-02-09 06:52:24 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-02-29 16:40:42 +00:00
|
|
|
accentColour ? "base07",
|
2024-02-09 06:52:24 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-01-30 14:21:50 +00:00
|
|
|
home.packages = [pkgs.nyxt];
|
2024-02-02 07:52:21 +00:00
|
|
|
xdg = {
|
2024-02-08 22:06:48 +00:00
|
|
|
configFile = {
|
2024-02-29 16:40:42 +00:00
|
|
|
"nyxt/config.lisp".text = with config.stylix;
|
|
|
|
with config.lib.stylix.colors.withHashtag; let
|
|
|
|
accent = config.lib.stylix.colors.withHashtag.${accentColour};
|
|
|
|
in ''
|
2024-02-09 06:52:24 +00:00
|
|
|
;; Import custom configuration
|
|
|
|
(nyxt::load-lisp "${./config.lisp}")
|
2024-02-29 16:40:42 +00:00
|
|
|
;; Custom theme using stylix
|
|
|
|
(define-configuration
|
|
|
|
browser
|
|
|
|
((theme (make-instance
|
|
|
|
'theme:theme
|
|
|
|
:dark-p t
|
|
|
|
:font-family "${fonts.sansSerif.name}"
|
|
|
|
:monospace-font-family "${fonts.monospace.name}"
|
|
|
|
:text-color "${base05}"
|
|
|
|
:text-color+ "${base05}"
|
|
|
|
:text-color- "${base05}"
|
|
|
|
:contrast-text-color "${base00}"
|
|
|
|
:background-color "${base00}"
|
|
|
|
:background-color+ "${base00}"
|
|
|
|
:background-color- "${base00}"
|
|
|
|
:on-background-color "${base05}"
|
|
|
|
:accent-color "${accent}"
|
|
|
|
:accent-color+ "${accent}"
|
|
|
|
:accent-color- "${accent}"
|
|
|
|
:on-accent-color "${base00}"
|
|
|
|
:primary-color "${accent}"
|
|
|
|
:primary-color+ "${accent}"
|
|
|
|
:primary-color- "${accent}"
|
|
|
|
:on-primary-color "${base00}"
|
|
|
|
:secondary-color "${base03}"
|
|
|
|
:secondary-color+ "${base03}"
|
|
|
|
:secondary-color- "${base03}"
|
|
|
|
:on-secondary-color "${base05}"
|
|
|
|
:warning-color "${base08}"
|
|
|
|
:warning-color+ "${base08}"
|
|
|
|
:warning-color- "${base08}"
|
|
|
|
:on-warning-color "${base00}"
|
|
|
|
:highlight-color "${base0A}"
|
|
|
|
:highlight-color+ "${base0A}"
|
|
|
|
:highlight-color- "${base0A}"
|
|
|
|
:on-highlight-color "${base00}"
|
|
|
|
:action-color "${base0D}"
|
|
|
|
:action-color+ "${base0D}"
|
|
|
|
:action-color- "${base0D}"
|
|
|
|
:on-action-color "${base00}"
|
|
|
|
:codeblock-color "${base01}"
|
|
|
|
:codeblock-color+ "${base01}"
|
|
|
|
:codeblock-color- "${base01}"
|
|
|
|
:on-codeblock-color "${base05}"))))
|
2024-02-09 06:52:24 +00:00
|
|
|
'';
|
2024-02-08 22:06:48 +00:00
|
|
|
};
|
2024-02-02 07:52:21 +00:00
|
|
|
dataFile."nyxt/bookmarks.lisp".source = ./bookmarks.lisp;
|
|
|
|
};
|
2024-01-17 16:22:05 +00:00
|
|
|
}
|