Add some basic nyxt config with base16 theme

This commit is contained in:
Evie Litherland-Smith 2023-11-04 10:01:21 +00:00
parent 762ee79929
commit fcfa068492
4 changed files with 28 additions and 1 deletions

View file

@ -41,6 +41,7 @@
./home/accounts/default.nix
./home/emacs/default.nix
./home/hyprland/default.nix
./home/nyxt/default.nix
./home/alacritty.nix
./home/default.nix
./home/firefox.nix

6
home/nyxt/config.lisp Normal file
View file

@ -0,0 +1,6 @@
(setf (uiop:getenv "GTK_THEME") "Adwaita:dark")
(define-configuration buffer
((default-modes (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))))
(define-configuration web-buffer
((default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))
(load "~/.config/nyxt/theme.lisp")

21
home/nyxt/default.nix Normal file
View file

@ -0,0 +1,21 @@
{ config, lib, pkgs, ... }:
{
home.packages = with pkgs; [ nyxt ];
xdg.configFile = {
"nyxt/config.lisp".source = ./config.lisp;
"nyxt/theme.lisp".text = with config.lib.stylix.colors.withHashtag; ''
(define-configuration browser
((theme (make-instance
'theme:theme
:font-family "${config.stylix.fonts.sansSerif.name}"
:background-color "${base00}"
:background-alt-color "${base01}"
:accent-color "${base0A}"
:primary-color "${base05}"
:secondary-color "${base04}"
:warning-color "${base0A}"))))
'';
};
}

View file

@ -11,7 +11,6 @@
protonvpn-cli
protonvpn-gui
transmission-gtk
nyxt
fractal
discord
teams-for-linux