Fix firefox profiles/config not working for some reason

This commit is contained in:
Evie Litherland-Smith 2024-10-28 14:12:48 +00:00
parent ccfe617b8d
commit ce37e5c498
2 changed files with 23 additions and 20 deletions

View file

@ -1,5 +1,6 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
{ {
stylix.targets.firefox.enable = false;
programs = { programs = {
browserpass = { browserpass = {
enable = true; enable = true;
@ -109,6 +110,8 @@
StartDownloadsInTempDirectory = true; StartDownloadsInTempDirectory = true;
}; };
profiles.default = { profiles.default = {
id = 0;
isDefault = true;
bookmarks = builtins.fromJSON (builtins.readFile ./bookmarks.json); bookmarks = builtins.fromJSON (builtins.readFile ./bookmarks.json);
settings = { settings = {
"app.shield.optoutstudies.enabled" = false; "app.shield.optoutstudies.enabled" = false;

View file

@ -6,7 +6,7 @@
"nyxt/config.lisp".text = "nyxt/config.lisp".text =
let let
fonts = config.stylix.fonts; fonts = config.stylix.fonts;
scheme = config.lib.stylix.scheme; scheme = config.lib.stylix.scheme.withHashtag;
in in
'' ''
;; Import custom configuration ;; Import custom configuration
@ -14,27 +14,27 @@
;; Define custom theme ;; Define custom theme
(define-configuration browser (define-configuration browser
((theme (make-instance 'theme:theme ((theme (make-instance 'theme:theme
:dark-p t :dark-p nil
: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.withHashtag.base00}" :background-color "${scheme.base00}"
:on-background-color "${scheme.withHashtag.base05}" :on-background-color "${scheme.base05}"
:primary-color "${scheme.withHashtag.base02}" :primary-color "${scheme.base02}"
:on-primary-color "${scheme.withHashtag.base05}" :on-primary-color "${scheme.base05}"
:secondary-color "${scheme.withHashtag.base03}" :secondary-color "${scheme.base03}"
:on-secondary-color "${scheme.withHashtag.base05}" :on-secondary-color "${scheme.base05}"
:accent-color "${scheme.withHashtag.base0E}" :accent-color "${scheme.base0E}"
:on-accent-color "${scheme.withHashtag.base01}" :on-accent-color "${scheme.base01}"
:action-color "${scheme.withHashtag.cyan}" :action-color "${scheme.cyan}"
:on-action-color "${scheme.withHashtag.base01}" :on-action-color "${scheme.base01}"
:success-color "${scheme.withHashtag.green}" :success-color "${scheme.green}"
:on-success-color "${scheme.withHashtag.base01}" :on-success-color "${scheme.base01}"
:highlight-color "${scheme.withHashtag.magenta}" :highlight-color "${scheme.magenta}"
:on-highlight-color "${scheme.withHashtag.base01}" :on-highlight-color "${scheme.base01}"
:warning-color "${scheme.withHashtag.yellow}" :warning-color "${scheme.yellow}"
:on-warning-color "${scheme.withHashtag.base01}" :on-warning-color "${scheme.base01}"
:codeblock-color "${scheme.withHashtag.base02}" :codeblock-color "${scheme.base02}"
:on-codeblock-color "${scheme.withHashtag.base05}")))) :on-codeblock-color "${scheme.base05}"))))
''; '';
}; };
dataFile."nyxt/bookmarks.lisp".text = dataFile."nyxt/bookmarks.lisp".text =