Compare commits
No commits in common. "2d254894573a237205b54f4c8bc3748bf70581de" and "eb591d4b9ce39909f89b99f6f2623ffa023d326c" have entirely different histories.
2d25489457
...
eb591d4b9c
3 changed files with 69 additions and 6 deletions
|
@ -9,10 +9,77 @@ lib.mkIf osConfig.programs.firefox.enable {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
# Installed by nixpkgs module
|
# Installed by nixpkgs module
|
||||||
package = null;
|
package = osConfig.programs.firefox.package;
|
||||||
profiles.${config.home.username} = {
|
profiles.${config.home.username} = {
|
||||||
name = config.home.username;
|
name = config.home.username;
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
|
userContent = # css
|
||||||
|
''
|
||||||
|
/* Sidebery */
|
||||||
|
@-moz-document url("moz-extension://d1d9847c-2bad-429f-9366-56db49b8c3d6/sidebar/sidebar.html")
|
||||||
|
{
|
||||||
|
#root {
|
||||||
|
--tabs-indent: 0px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#root:hover {
|
||||||
|
--tabs-indent: 30px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
userChrome = # css
|
||||||
|
''
|
||||||
|
/* Hides the native tabs, sidebar header and splitter */
|
||||||
|
#TabsToolbar,
|
||||||
|
#sidebar-splitter,
|
||||||
|
#sidebar-header {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-box {
|
||||||
|
--sidebar-normal-width: 35px;
|
||||||
|
--sidebar-hovered-width: 300px;
|
||||||
|
--sidebar-transition-speed: 200ms;
|
||||||
|
--sidebar-collapse-delay: 300ms;
|
||||||
|
--sidebar-transition-type: linear;
|
||||||
|
--browser-area-z-index-sidebar: 3;
|
||||||
|
|
||||||
|
position: relative;
|
||||||
|
min-width: var(--sidebar-normal-width) !important;
|
||||||
|
width: var(--sidebar-normal-width) !important;
|
||||||
|
max-width: var(--sidebar-normal-width) !important;
|
||||||
|
z-index: var(--browser-area-z-index-sidebar);
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-box[positionend] {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
#sidebar-box[positionend] > * {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-box[positionend]:-moz-locale-dir(rtl) {
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
#sidebar-box[positionend]:-moz-locale-dir(rtl) > * {
|
||||||
|
direction: rtl;
|
||||||
|
}
|
||||||
|
|
||||||
|
#main-window[sizemode="fullscreen"] #sidebar-box {
|
||||||
|
--sidebar-normal-width: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar {
|
||||||
|
transition: min-width var(--sidebar-transition-speed)
|
||||||
|
var(--sidebar-transition-type) var(--sidebar-collapse-delay) !important;
|
||||||
|
min-width: var(--sidebar-normal-width) !important;
|
||||||
|
will-change: min-width;
|
||||||
|
}
|
||||||
|
#sidebar-box:hover > #sidebar {
|
||||||
|
min-width: var(--sidebar-hovered-width) !important;
|
||||||
|
transition-delay: 100ms !important;
|
||||||
|
}
|
||||||
|
'';
|
||||||
search = {
|
search = {
|
||||||
default = "DuckDuckGo";
|
default = "DuckDuckGo";
|
||||||
force = true;
|
force = true;
|
||||||
|
|
|
@ -47,7 +47,6 @@
|
||||||
"ntfy"
|
"ntfy"
|
||||||
"octoprint"
|
"octoprint"
|
||||||
"assistant"
|
"assistant"
|
||||||
"rss"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
}:
|
}:
|
||||||
lib.mkIf config.programs.firefox.enable {
|
lib.mkIf config.programs.firefox.enable {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
package = pkgs.firefox-beta;
|
package = pkgs.firefox-esr;
|
||||||
languagePacks = [
|
languagePacks = [
|
||||||
"de"
|
"de"
|
||||||
"en-GB"
|
"en-GB"
|
||||||
|
@ -42,7 +42,6 @@ lib.mkIf config.programs.firefox.enable {
|
||||||
"browser.newtabpage.activity-stream.showSearch" = false;
|
"browser.newtabpage.activity-stream.showSearch" = false;
|
||||||
"browser.newtabpage.activity-stream.feeds.topsites" = false;
|
"browser.newtabpage.activity-stream.feeds.topsites" = false;
|
||||||
"browser.newtabpage.activity-stream.feeds.section.highlights" = false;
|
"browser.newtabpage.activity-stream.feeds.section.highlights" = false;
|
||||||
"browser.tabs.groups.enabled" = true;
|
|
||||||
# Add-ons
|
# Add-ons
|
||||||
"extensions.pocket.enabled" = false;
|
"extensions.pocket.enabled" = false;
|
||||||
"extensions.postDownloadThirdPartyPrompt" = false; # Prompt for install before download
|
"extensions.postDownloadThirdPartyPrompt" = false; # Prompt for install before download
|
||||||
|
@ -78,8 +77,6 @@ lib.mkIf config.programs.firefox.enable {
|
||||||
"privacy.resistFingerprinting.block_mozAddonManager" = true;
|
"privacy.resistFingerprinting.block_mozAddonManager" = true;
|
||||||
# Allow styling through userChrome.css
|
# Allow styling through userChrome.css
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
|
|
||||||
"sidebar.verticalTabs" = true;
|
|
||||||
};
|
};
|
||||||
policies = {
|
policies = {
|
||||||
PasswordManagerEnabled = false;
|
PasswordManagerEnabled = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue