firefox: module init

This commit is contained in:
Zynh Ludwig 2024-11-03 18:37:38 -08:00
parent 8ab25ee76f
commit 8caa4f6d77
2 changed files with 45 additions and 1 deletions

44
home/modules/firefox.nix Normal file
View file

@ -0,0 +1,44 @@
{ lib, config, pkgs, ... }:
let
cfg = config.snowhawk.firefox;
in
{
options.snowhawk.firefox = {
enable = lib.mkEnableOption "firefox home-manager module";
};
config = lib.mkIf cfg.enable {
programs.firefox = {
enable = true;
package = pkgs.firefox;
profiles.default = {
isDefault = true;
path = "x56262ch.default";
userChrome = /* css */ ''
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
opacity: 0;
pointer-events: none;
}
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
visibility: collapse !important;
}
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
display: none;
}
#titlebar {display: none !important;}
#main-window {-moz-appearance:none !important;}
'';
};
profiles.alt = {
id = 1;
path = "05fb1no8.casualypurple";
};
};
};
}

View file

@ -7,6 +7,7 @@
snowhawk = {
# Desktop
firefox.enable = true;
dunst.enable = true;
theme.enable = true;
redshift.enable = true;
@ -86,7 +87,6 @@
arandr
brave
firefox
spotify
vesktop