2024-02-09 06:52:24 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
2024-03-31 12:59:24 +01:00
|
|
|
fonts,
|
|
|
|
scheme,
|
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-04-26 06:16:09 +01:00
|
|
|
"nyxt/config.lisp".text = with scheme.withHashtag; ''
|
2024-02-09 06:52:24 +00:00
|
|
|
;; Import custom configuration
|
|
|
|
(nyxt::load-lisp "${./config.lisp}")
|
2024-04-24 14:02:20 +01:00
|
|
|
;; Define and load custom theme
|
2024-04-26 06:16:09 +01:00
|
|
|
;; (nyxt::load-lisp "${./theme.lisp}")
|
|
|
|
(define-configuration browser
|
|
|
|
((theme (make-instance 'theme:theme
|
|
|
|
:dark-p t
|
|
|
|
:font-family "${fonts.sansSerif.name}"
|
|
|
|
:monospace-font-family "${fonts.monospace.name}"
|
|
|
|
:background-color "${base00}"
|
|
|
|
:on-background-color "${base05}"
|
|
|
|
:primary-color "${scheme.withHashtag.${accentColour}}"
|
|
|
|
:on-primary-color "${base01}"
|
|
|
|
:secondary-color "${base03}"
|
|
|
|
:on-secondary-color "${base05}"
|
|
|
|
:accent-color "${cyan}"
|
|
|
|
:on-accent-color "${base01}"
|
|
|
|
:action-color "${cyan}"
|
|
|
|
:on-action-color "${base01}"
|
|
|
|
:success-color "${green}"
|
|
|
|
:on-success-color "${base01}"
|
|
|
|
:highlight-color "${magenta}"
|
|
|
|
:on-highlight-color "${base01}"
|
|
|
|
:warning-color "${yellow}"
|
|
|
|
:on-warning-color "${base01}"
|
|
|
|
:codeblock-color "${base02}"
|
|
|
|
: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
|
|
|
}
|