Firefox -> LibreWolf

This commit is contained in:
Martin Larsson 2025-10-03 11:23:18 +02:00
parent 571b3862f4
commit b3dcc2035f
2 changed files with 74 additions and 76 deletions

View file

@ -70,7 +70,7 @@ cmd-alt-h = [] # Disable "hide others"
# All possible commands: https://nikitabobko.github.io/AeroSpace/commands # All possible commands: https://nikitabobko.github.io/AeroSpace/commands
cmd-enter = 'exec-and-forget open -n /Applications/Ghostty.app' cmd-enter = 'exec-and-forget open -n /Applications/Ghostty.app'
cmd-b = 'exec-and-forget open -n ~/Applications/Nix/Firefox.app' cmd-b = 'exec-and-forget open -n ~/Applications/Nix/LibreWolf.app'
# See: https://nikitabobko.github.io/AeroSpace/commands#layout # See: https://nikitabobko.github.io/AeroSpace/commands#layout
# alt-slash = 'layout tiles horizontal vertical' # alt-slash = 'layout tiles horizontal vertical'

View file

@ -33,6 +33,7 @@ let
vimium vimium
privacy-badger privacy-badger
clearurls clearurls
stylus
react-devtools react-devtools
]; ];
in in
@ -42,91 +43,88 @@ in
MOZ_USE_XINPUT2 = "1"; MOZ_USE_XINPUT2 = "1";
}; };
programs = { programs.librewolf = {
firefox = { enable = true;
enable = true;
policies = { policies = {
"DisableFirefoxStudies" = true; "DisableFirefoxStudies" = true;
"DisableTelemetry" = true; "DisableTelemetry" = true;
"NoDefaultBookmarks" = false; # Without this, adding bookmarks declaratively doesnt work. "NoDefaultBookmarks" = false; # Without this, adding bookmarks declaratively doesnt work.
};
profiles.default = {
isDefault = true;
name = "DefaultProfile";
userChrome = ''
@import "theme/nordic-theme.css";
@import "theme/hide-single-tab.css";
@import "theme/matching-autocomplete-width.css";
@import "theme/system-icons.css";
@import "theme/symbolic-tab-icons.css";
@import "customChrome.css";
'';
bookmarks = {
force = true;
settings = map (entry: {
name = builtins.elemAt entry 0;
url = builtins.elemAt entry 1;
}) bookmarks_data;
}; };
profiles = { extensions = {
default = { packages = extensions;
isDefault = true; };
name = "DefaultProfile";
userChrome = ''
@import "theme/nordic-theme.css";
@import "theme/hide-single-tab.css";
@import "theme/matching-autocomplete-width.css";
@import "theme/system-icons.css";
@import "theme/symbolic-tab-icons.css";
@import "customChrome.css"; settings = {
''; "browser.startup.homepage" = "https://search.nixos.org";
"browser.shell.checkDefaultBrowser" = false;
"privacy.resistFingerprinting" = false;
"dom.security.https_only_mode" = true;
"browser.tabs.warnOnClose" = false;
"extensions.pocket.enabled" = false;
"browser.search.defaultenginename" = "ddg";
"gfx.webrender.all" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.tabs.allow_transparent_browser" = true;
"layout.css.prefers-color-scheme.content-override" = 2;
};
bookmarks = { search = {
force = true; force = true;
settings = map (entry: { default = "ddg";
name = builtins.elemAt entry 0; order = [
url = builtins.elemAt entry 1; "ddg"
}) bookmarks_data; "google"
];
engines = {
"ddg".metaData = {
alias = "@d";
hidden = false;
}; };
"google".metaData = {
extensions = { alias = "@g";
packages = extensions; hidden = false;
}; };
"Nix Packages" = {
settings = { urls = [
"browser.startup.homepage" = "https://search.nixos.org"; {
"browser.shell.checkDefaultBrowser" = false; template = "https://search.nixos.org/packages";
"privacy.resistFingerprinting" = false; params = [
"dom.security.https_only_mode" = true;
"browser.tabs.warnOnClose" = false;
"extensions.pocket.enabled" = false;
"browser.search.defaultenginename" = "ddg";
"gfx.webrender.all" = true;
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
"browser.tabs.allow_transparent_browser" = true;
};
search = {
force = true;
default = "ddg";
order = [
"ddg"
"google"
];
engines = {
"ddg".metaData = {
alias = "@d";
hidden = false;
};
"google".metaData = {
alias = "@g";
hidden = false;
};
"Nix Packages" = {
urls = [
{ {
template = "https://search.nixos.org/packages"; name = "type";
params = [ value = "packages";
{ }
name = "type"; {
value = "packages"; name = "query";
} value = "{searchTerms}";
{
name = "query";
value = "{searchTerms}";
}
];
} }
]; ];
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; }
definedAliases = [ "@np" ]; ];
}; icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
}; definedAliases = [ "@np" ];
}; };
}; };
}; };