diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-27 12:37:52 +0200 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2026-09-27 12:37:52 +0200 |
| commit | badf7aba844967c5d13e01079c12df758715167a (patch) | |
| tree | 3c0872b667a64a82caf7bab3d2503c9f7a6444b9 /accounts/gkleen@skadhi/firefox | |
| parent | 74d97f767ac4d6f05ce95e388460a49c5190afc3 (diff) | |
| download | nixos-flakes.tar nixos-flakes.tar.gz nixos-flakes.tar.bz2 nixos-flakes.tar.xz nixos-flakes.zip | |
...flakes
Diffstat (limited to 'accounts/gkleen@skadhi/firefox')
| -rw-r--r-- | accounts/gkleen@skadhi/firefox/default.nix | 24 | ||||
| -rw-r--r-- | accounts/gkleen@skadhi/firefox/userChrome.css | 54 | ||||
| -rw-r--r-- | accounts/gkleen@skadhi/firefox/userContent.css | 12 |
3 files changed, 90 insertions, 0 deletions
diff --git a/accounts/gkleen@skadhi/firefox/default.nix b/accounts/gkleen@skadhi/firefox/default.nix new file mode 100644 index 00000000..9b3be324 --- /dev/null +++ b/accounts/gkleen@skadhi/firefox/default.nix | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | { ... }: | ||
| 2 | { | ||
| 3 | config = { | ||
| 4 | programs.firefox = { | ||
| 5 | enable = true; | ||
| 6 | profiles.default = { | ||
| 7 | settings = { | ||
| 8 | "browser.tabs.drawInTitlebar" = false; | ||
| 9 | "toolkit.legacyUserProfileCustomizations.stylesheets" = true; | ||
| 10 | "dom.security.https_only_mode" = true; | ||
| 11 | }; | ||
| 12 | }; | ||
| 13 | }; | ||
| 14 | |||
| 15 | home.persistence."/persistent".directories = [ | ||
| 16 | ".mozilla/firefox" | ||
| 17 | ]; | ||
| 18 | |||
| 19 | home.file = { | ||
| 20 | ".mozilla/firefox/default/chrome/userChrome.css".source = ./userChrome.css; | ||
| 21 | ".mozilla/firefox/default/chrome/userContent.css".source = ./userContent.css; | ||
| 22 | }; | ||
| 23 | }; | ||
| 24 | } | ||
diff --git a/accounts/gkleen@skadhi/firefox/userChrome.css b/accounts/gkleen@skadhi/firefox/userChrome.css new file mode 100644 index 00000000..726f1e4b --- /dev/null +++ b/accounts/gkleen@skadhi/firefox/userChrome.css | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | ||
| 2 | |||
| 3 | * { | ||
| 4 | font-size:12px; | ||
| 5 | } | ||
| 6 | |||
| 7 | #sidebar-main:has([expanded]) { | ||
| 8 | min-width:20em !important; | ||
| 9 | max-width:20em !important; | ||
| 10 | } | ||
| 11 | |||
| 12 | #sidebar, #sidebar-box { | ||
| 13 | min-width:35em !important; | ||
| 14 | max-width:35em !important; | ||
| 15 | } | ||
| 16 | |||
| 17 | #sidebar-box { | ||
| 18 | margin-right: var(--space-small); | ||
| 19 | } | ||
| 20 | |||
| 21 | /* | ||
| 22 | #sidebar { | ||
| 23 | min-width:20em !important; | ||
| 24 | max-width:20em !important; | ||
| 25 | border-right:1px solid rgba(30,30,30) !important; | ||
| 26 | } | ||
| 27 | |||
| 28 | #sidebar-header:nth-last-child(2) > *:last-child { | ||
| 29 | visibility: collapse; | ||
| 30 | } | ||
| 31 | |||
| 32 | #sidebar-splitter { | ||
| 33 | visibility: collapse; | ||
| 34 | } | ||
| 35 | |||
| 36 | #toolbar-menubar[inactive="true"] + #TabsToolbar { | ||
| 37 | visibility: collapse !important; | ||
| 38 | } | ||
| 39 | |||
| 40 | #sidebar-box[sidebarcommand="tabcenter-reborn_ariasuni-sidebar-action"] #sidebar-header { visibility: collapse !important; } | ||
| 41 | #sidebar-box[sidebarcommand="_3c078156-979c-498b-8990-85f7987dd929_-sidebar-action"] #sidebar-header { visibility: collapse !important; } | ||
| 42 | */ | ||
| 43 | |||
| 44 | .titlebar-buttonbox-container{ display: none; } | ||
| 45 | #vertical-spacer { display: none; } | ||
| 46 | #tabbrowser-tabs[orient="vertical"] .tab-background { | ||
| 47 | border-radius: var(--border-radius-small) !important; | ||
| 48 | } | ||
| 49 | hbox:has(> #tabs-newtab-button) { | ||
| 50 | display: none; | ||
| 51 | } | ||
| 52 | #sidebar-main .tools-and-extensions { | ||
| 53 | justify-content: space-around !important; | ||
| 54 | } | ||
diff --git a/accounts/gkleen@skadhi/firefox/userContent.css b/accounts/gkleen@skadhi/firefox/userContent.css new file mode 100644 index 00000000..3ac53a9d --- /dev/null +++ b/accounts/gkleen@skadhi/firefox/userContent.css | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | @-moz-document url("about:blank") { | ||
| 2 | html { | ||
| 3 | background-color: rgb(40,40,40); | ||
| 4 | } | ||
| 5 | } | ||
| 6 | |||
| 7 | @-moz-document url(about:newtab) { | ||
| 8 | body, #newtab-customize-overlay { | ||
| 9 | background-color: rgb(40,40,40) !important; | ||
| 10 | color: rgb(166,166,166) !important; | ||
| 11 | } | ||
| 12 | } | ||
