dotfiles/modules/users/modules/qutebrowser/default.nix

29 lines
657 B
Nix
Raw Normal View History

2024-07-19 12:00:55 +00:00
{
config,
lib,
pkgs,
...
}:
2024-07-19 01:34:42 +00:00
with lib;
let
cfg = config.modules.qutebrowser;
theme = config.theming;
2024-07-19 12:00:55 +00:00
in
{
2024-07-19 01:34:42 +00:00
options.modules.qutebrowser.enable = mkEnableOption "qutebrowser";
config = mkIf cfg.enable {
programs.qutebrowser = {
enable = true;
extraConfig = ''
config.set("colors.webpage.darkmode.enabled", False)
config.set("colors.webpage.preferred_color_scheme", "${if theme.darkMode then "dark" else "light"}")
config.set("fonts.default_family", "${theme.fonts.monospace.name}")
config.set("fonts.default_size", "${toString theme.fonts.monospace.recommendedSize}pt")
'';
};
};
2024-07-19 12:00:55 +00:00
}