feat(minion): add firefox sidebery customizations
I use sidebery on firefox, but sidebery is not best used without hiding
some existing firefox elements such as the original tab bar
Change-Id: I4b9af3df468e0bea92517d3bf7050c42535ad9fa
Reviewed-on: https://git.clicks.codes/c/Chimera/NixFiles/+/706
Reviewed-by: Skyler Grey <minion@clicks.codes>
Tested-by: Skyler Grey <minion@clicks.codes>
diff --git a/flake.lock b/flake.lock
index c63a1e0..662a3b9 100644
--- a/flake.lock
+++ b/flake.lock
@@ -65,6 +65,22 @@
"type": "github"
}
},
+ "firefox-sidebery-gnome": {
+ "flake": false,
+ "locked": {
+ "lastModified": 1711290399,
+ "narHash": "sha256-e1xuHAHgeC8EU7cAIa3XfvzgI4Y7rzyTkAt9sBsgrfc=",
+ "owner": "rafaelmardojai",
+ "repo": "firefox-gnome-theme",
+ "rev": "33015314c12190230295cff61ced148e0f7ffe1c",
+ "type": "github"
+ },
+ "original": {
+ "owner": "rafaelmardojai",
+ "repo": "firefox-gnome-theme",
+ "type": "github"
+ }
+ },
"flake-compat": {
"flake": false,
"locked": {
@@ -382,6 +398,7 @@
"collabora-gtimelog": "collabora-gtimelog",
"collabora-icon": "collabora-icon",
"ewwsalmoomedits--eww-widgets": "ewwsalmoomedits--eww-widgets",
+ "firefox-sidebery-gnome": "firefox-sidebery-gnome",
"home-manager": "home-manager",
"hyprland": "hyprland",
"nix-index-database": "nix-index-database",
diff --git a/flake.nix b/flake.nix
index a40d052..4b6fc1e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -21,6 +21,11 @@
flake = false;
};
+ firefox-sidebery-gnome = {
+ url = "github:rafaelmardojai/firefox-gnome-theme";
+ flake = false;
+ };
+
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
diff --git a/modules/home/users/minion/default.nix b/modules/home/users/minion/default.nix
index 677ed34..45f7530 100644
--- a/modules/home/users/minion/default.nix
+++ b/modules/home/users/minion/default.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, ... }:
+{ inputs, config, lib, pkgs, ... }:
{
options.chimera.minion.enable = lib.mkEnableOption "Enable Chimera options for minion";
@@ -102,6 +102,39 @@
config.nur.repos.rycee.firefox-addons.refined-github
];
};
+ programs.firefox.profiles.chimera.userChrome = ''
+ @import "${inputs.firefox-sidebery-gnome}/userChrome.css";
+
+ #TabsToolbar {
+ display: none;
+ }
+ #sidebar-header {
+ display: none;
+ }
+
+ /* Hide "Sign in to sync" */
+ #PanelUI-fxa-status {
+ display: none !important;
+ }
+ #appMenu-fxa-status2, #appMenu-fxa-separator {
+ display: none !important;
+ }
+ '';
+ programs.firefox.profiles.chimera.userContent = ''
+ @import "${inputs.firefox-sidebery-gnome}/userContent.css";
+
+ @-moz-document url("about:preferences") {
+ #category-sync { display:none!important; }
+ #category-more-from-mozilla { display:none!important; }
+ }
+ '';
+ programs.firefox.profiles.chimera.settings = {
+ "toolkit.legacyUserProfileCustomizations.stylesheets" = true;
+ "svg.context-properties.content.enabled" = true;
+ "browser.uidensity" = 0;
+ "browser.theme.dark-private-windows" = false;
+ "widget.gtk.rounded-bottom-corners.enabled" = true;
+ };
chimera.shell = {
bash.enable = true;