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