1

Modules/Firefox: Add textfox theme

This commit is contained in:
2025-07-20 22:44:25 +02:00
parent 16e60f65cf
commit 20e9cb7e2d
7 changed files with 101 additions and 8 deletions

View File

@ -68,6 +68,7 @@
enable = !headless;
wayland = true;
vaapi = true;
textfox = true;
disableTabBar = true;
};
@ -195,6 +196,7 @@
"Spotify"
"tidal-hifi"
"obsidian"
"firefox"
"jetbrains-clion"
"jetbrains-idea"
"jetbrains-pycharm"

View File

@ -29,6 +29,9 @@
# HM modules imported from the flake inputs
inputs.nix-flatpak.homeManagerModules.nix-flatpak
inputs.nixvim.homeManagerModules.nixvim
inputs.textfox.homeManagerModules.default
# NOTE: Do NOT use this, use the system module (the HM module has to rely on fuse)
# inputs.impermanence.homeManagerModules.impermanence
];
}

View File

@ -46,6 +46,7 @@
"downloads-button",
"urlbar-container",
"save-to-pocket-button",
"_3c078156-979c-498b-8990-85f7987dd929_-browser-action",
"fxa-toolbar-menu-button",
"treestyletab_piro_sakura_ne_jp-browser-action",
"ublock0_raymondhill_net-browser-action",
@ -128,7 +129,8 @@
"_cb31ec5d-c49a-4e5a-b240-16c767444f62_-browser-action",
"screenshot-button",
"_bbb880ce-43c9-47ae-b746-c3e0096c5b76_-browser-action",
"jid1-qofqdk4qzufgwq_jetpack-browser-action"
"jid1-qofqdk4qzufgwq_jetpack-browser-action",
"_3c078156-979c-498b-8990-85f7987dd929_-browser-action"
],
"dirtyAreaCache": [
"nav-bar",
@ -140,5 +142,5 @@
"vertical-tabs"
],
"currentVersion": 22,
"newElementCount": 8
"newElementCount": 9
}

View File

@ -6,11 +6,54 @@
hostname,
...
}: let
inherit (config.modules) firefox;
inherit (config.modules) firefox color;
in {
options.modules.firefox = import ./options.nix {inherit lib mylib;};
config = lib.mkIf firefox.enable {
textfox = {
enable = firefox.textfox;
useLegacyExtensions = false;
profile = "default";
config = {
background = {
color = color.hexS.base;
};
border = {
color = color.hexS.overlay1;
width = "2px";
transition = "1.0s ease";
radius = "3px";
};
displayWindowControls = true;
displayNavButtons = true;
displayUrlbarIcons = true;
displaySidebarTools = false;
displayTitles = false;
icons = {
toolbar.extensions.enable = true;
context.extensions.enable = true;
context.firefox.enable = true;
};
tabs = {
horizontal.enable = !firefox.disableTabBar;
vertical.enable = firefox.disableTabBar;
# vertical.margin = "1rem";
};
font = {
family = color.font;
size = "14px";
accent = color.hexS.accent;
};
};
};
home.packages = with pkgs; [vdhcoapp];
home.sessionVariables = lib.mkMerge [
@ -179,6 +222,7 @@ in {
# catppuccin-web-file-icons
clearurls
cookie-autodelete
dark-background-light-text
display-_anchors # Easier linking to specific website parts
don-t-fuck-with-paste
enhancer-for-youtube

View File

@ -9,4 +9,5 @@ with mylib.modules; {
wayland = mkBoolOption false "Enable firefox wayland support";
vaapi = mkBoolOption false "Enable firefox vaapi support";
disableTabBar = mkBoolOption false "Disable the firefox tab bar (for TST)";
textfox = mkBoolOption false "Enable the TextFox theme";
}