From fcfa068492284dacc033bdb2fff389d4bbe5a27c Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 4 Nov 2023 10:01:21 +0000 Subject: [PATCH] Add some basic nyxt config with base16 theme --- flake.nix | 1 + home/nyxt/config.lisp | 6 ++++++ home/nyxt/default.nix | 21 +++++++++++++++++++++ system/desktop.nix | 1 - 4 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 home/nyxt/config.lisp create mode 100644 home/nyxt/default.nix diff --git a/flake.nix b/flake.nix index f1454822..1b811444 100644 --- a/flake.nix +++ b/flake.nix @@ -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 diff --git a/home/nyxt/config.lisp b/home/nyxt/config.lisp new file mode 100644 index 00000000..20c07c30 --- /dev/null +++ b/home/nyxt/config.lisp @@ -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") diff --git a/home/nyxt/default.nix b/home/nyxt/default.nix new file mode 100644 index 00000000..9f9ef88a --- /dev/null +++ b/home/nyxt/default.nix @@ -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}")))) + + ''; + }; +} diff --git a/system/desktop.nix b/system/desktop.nix index 1d846818..f49174b2 100644 --- a/system/desktop.nix +++ b/system/desktop.nix @@ -11,7 +11,6 @@ protonvpn-cli protonvpn-gui transmission-gtk - nyxt fractal discord teams-for-linux