dotfiles/modules/applications/firefox.nix

20 lines
402 B
Nix
Raw Normal View History

2022-04-29 03:04:48 +00:00
{ pkgs, lib, user, gui, gtkTheme, ... }:
2022-04-28 22:55:15 +00:00
{
2022-04-29 01:56:21 +00:00
config = lib.mkIf gui {
2022-04-29 03:04:48 +00:00
home-manager.users.${user} = {
home.packages = [ pkgs.firefox ];
gtk = {
enable = true;
theme = { name = gtkTheme; };
};
};
2022-04-29 01:56:21 +00:00
# Required for setting GTK theme (for preferred-color-scheme in browser)
services.dbus.packages = [ pkgs.dconf ];
programs.dconf.enable = true;
2022-04-29 03:04:48 +00:00
2022-04-29 01:56:21 +00:00
};
2022-04-28 22:55:15 +00:00
}