Add NYXT browser back with some config tweaks

This commit is contained in:
Evie Litherland-Smith 2024-12-28 06:58:40 +00:00
parent cc57e16c87
commit 4fd459a621
3 changed files with 7 additions and 4 deletions

View file

@ -139,6 +139,7 @@
./home/hyprland.nix ./home/hyprland.nix
./home/terminal/default.nix ./home/terminal/default.nix
./home/browser/firefox.nix ./home/browser/firefox.nix
./home/browser/nyxt.nix
./home/emacs/default.nix ./home/emacs/default.nix
./home/email/default.nix ./home/email/default.nix
./home/calendar/default.nix ./home/calendar/default.nix

View file

@ -63,5 +63,3 @@
(define-configuration browser (define-configuration browser
((restore-session-on-startup-p nil))) ((restore-session-on-startup-p nil)))
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:light")

View file

@ -5,16 +5,20 @@
configFile = { configFile = {
"nyxt/config.lisp".text = "nyxt/config.lisp".text =
let let
inherit (config.lib.stylix.scheme) variant;
fonts = config.stylix.fonts; fonts = config.stylix.fonts;
scheme = config.lib.stylix.scheme.withHashtag; scheme = config.lib.stylix.scheme.withHashtag;
accent = scheme.base0E;
in in
'' ''
;; Import custom configuration ;; Import custom configuration
(nyxt::load-lisp "${./config.lisp}") (nyxt::load-lisp "${./config.lisp}")
;; Set theme variant from GTK_THEME if available
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:${variant}")
;; Define custom theme ;; Define custom theme
(define-configuration browser (define-configuration browser
((theme (make-instance 'theme:theme ((theme (make-instance 'theme:theme
:dark-p nil :dark-p ${if variant == "light" then "nil" else "t"}
:font-family "${fonts.sansSerif.name}" :font-family "${fonts.sansSerif.name}"
:monospace-font-family "${fonts.monospace.name}" :monospace-font-family "${fonts.monospace.name}"
:background-color "${scheme.base00}" :background-color "${scheme.base00}"
@ -23,7 +27,7 @@
:on-primary-color "${scheme.base05}" :on-primary-color "${scheme.base05}"
:secondary-color "${scheme.base03}" :secondary-color "${scheme.base03}"
:on-secondary-color "${scheme.base05}" :on-secondary-color "${scheme.base05}"
:accent-color "${scheme.magenta}" :accent-color "${accent}"
:on-accent-color "${scheme.base01}" :on-accent-color "${scheme.base01}"
:action-color "${scheme.cyan}" :action-color "${scheme.cyan}"
:on-action-color "${scheme.base01}" :on-action-color "${scheme.base01}"