mirror of
https://github.com/tomasriveral/nixos.git
synced 2026-08-12 10:30:44 +02:00
formated whole config with alejandra
This commit is contained in:
+116
-116
@@ -1,6 +1,9 @@
|
||||
# adapted from https://github.com/contre95/dotfiles/blob/main/dotfiles/nixos/programs/librewolf.nix
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
home.sessionVariables = {
|
||||
MOZ_ENABLE_WAYLAND = 1;
|
||||
MOZ_USE_XINPUT2 = 1;
|
||||
@@ -9,117 +12,116 @@
|
||||
programs.librewolf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
"browser.profiles.enabled" = true;
|
||||
# disabled until i find something that uses it.
|
||||
"webgl.disabled" = true;
|
||||
# settings = lib.mapAttrs' (n: lib.nameValuePair "pref.${n}") {
|
||||
"app.update.auto" = true; # disable auto update
|
||||
#"dom.security.https_only_mode" = true; # force https
|
||||
"extensions.pocket.enabled" = false; # disable pocket
|
||||
#"browser.quitShortcut.disabled" = true; # disable ctrl+q
|
||||
"browser.download.panel.shown" = true; # show download panel
|
||||
"signon.rememberSignons" = false; # disable saving passwords
|
||||
"identity.fxaccounts.enabled" = false; # disable librewolf accounts
|
||||
"app.shield.optoutstudies.enabled" = false; # disable shield studies
|
||||
"browser.shell.checkDefaultBrowser" = false; # don't check if default browser
|
||||
#"browser.bookmarks.restore_default_bookmarks" = false; # don't restore default bookmarks
|
||||
# Download handling
|
||||
#"browser.download.dir" = "/home/meain/down"; # default download dir
|
||||
"browser.startup.page" = 3; # restore previous session
|
||||
# UI changes
|
||||
# "browser.uidensity" = 1; # enable dense UI
|
||||
#"general.autoScroll" = true; # enable autoscroll
|
||||
# "browser.compactmode.show" = true; # enable compact mode
|
||||
# "browser.tabs.firefox-view" = false; # enable librewolf view
|
||||
#"startup.homepage_welcome_url" =
|
||||
# "https://metrics.internal.contre.io/d/cUITC74Vksd/podman-revamped?orgId=1&from=2026-02-23T19:29:26.304Z&to=2026-02-23T19:59:26.304Z&timezone=browser&var-Filters=&var-namespace=alloy&var-level=error&var-level=debug&var-level=info&var-level=warn&refresh=5s&kiosk=true"; # disable welcome page
|
||||
"browser.newtabpage.enabled" = true; # disable new tab page
|
||||
"full-screen-api.ignore-widgets" = true; # fullscreen within window
|
||||
"browser.toolbars.bookmarks.visibility" = "always"; # hide bookmarks toolbar
|
||||
"browser.aboutConfig.showWarning" = false; # disable warning about about:config
|
||||
"media.videocontrols.picture-in-picture.video-toggle.enabled" = false; # disable picture in picture button
|
||||
"browser.profiles.enabled" = true;
|
||||
# disabled until i find something that uses it.
|
||||
"webgl.disabled" = true;
|
||||
# settings = lib.mapAttrs' (n: lib.nameValuePair "pref.${n}") {
|
||||
"app.update.auto" = true; # disable auto update
|
||||
#"dom.security.https_only_mode" = true; # force https
|
||||
"extensions.pocket.enabled" = false; # disable pocket
|
||||
#"browser.quitShortcut.disabled" = true; # disable ctrl+q
|
||||
"browser.download.panel.shown" = true; # show download panel
|
||||
"signon.rememberSignons" = false; # disable saving passwords
|
||||
"identity.fxaccounts.enabled" = false; # disable librewolf accounts
|
||||
"app.shield.optoutstudies.enabled" = false; # disable shield studies
|
||||
"browser.shell.checkDefaultBrowser" = false; # don't check if default browser
|
||||
#"browser.bookmarks.restore_default_bookmarks" = false; # don't restore default bookmarks
|
||||
# Download handling
|
||||
#"browser.download.dir" = "/home/meain/down"; # default download dir
|
||||
"browser.startup.page" = 3; # restore previous session
|
||||
# UI changes
|
||||
# "browser.uidensity" = 1; # enable dense UI
|
||||
#"general.autoScroll" = true; # enable autoscroll
|
||||
# "browser.compactmode.show" = true; # enable compact mode
|
||||
# "browser.tabs.firefox-view" = false; # enable librewolf view
|
||||
#"startup.homepage_welcome_url" =
|
||||
# "https://metrics.internal.contre.io/d/cUITC74Vksd/podman-revamped?orgId=1&from=2026-02-23T19:29:26.304Z&to=2026-02-23T19:59:26.304Z&timezone=browser&var-Filters=&var-namespace=alloy&var-level=error&var-level=debug&var-level=info&var-level=warn&refresh=5s&kiosk=true"; # disable welcome page
|
||||
"browser.newtabpage.enabled" = true; # disable new tab page
|
||||
"full-screen-api.ignore-widgets" = true; # fullscreen within window
|
||||
"browser.toolbars.bookmarks.visibility" = "always"; # hide bookmarks toolbar
|
||||
"browser.aboutConfig.showWarning" = false; # disable warning about about:config
|
||||
"media.videocontrols.picture-in-picture.video-toggle.enabled" = false; # disable picture in picture button
|
||||
|
||||
# Privacy
|
||||
"privacy.resistFingerprinting" = true;
|
||||
# "privacy.clearOnShutdown.cache" = false;
|
||||
"privacy.clearOnShutdown.history" = false;
|
||||
"privacy.clearHistory.cookiesAndStorage" = false;
|
||||
"privacy.clearHistory.historyFormDataAndDownloads" = false;
|
||||
"privacy.clearHistory.cache" = false;
|
||||
"privacy.clearOnShutdown_v2.siteSettings" = false;
|
||||
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.history" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.siteSettings" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.sessions" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.cookies" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.history" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.siteSettings" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.sessions" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.cookies" = false;
|
||||
"privacy.clearOnShutdown.cookies" = false;
|
||||
"browser.discovery.enabled" = false; # disable discovery
|
||||
"browser.search.suggest.enabled" = true; # disable search suggestions
|
||||
"browser.contentblocking.category" = "standart"; # set tracking protection to standart to not interfer with adnauseam
|
||||
"dom.private-attribution.submission.enabled" = false; # stop doing dumb stuff mozilla
|
||||
"browser.protections_panel.infoMessage.seen" = true; # disable tracking protection info
|
||||
# Privacy
|
||||
"privacy.resistFingerprinting" = true;
|
||||
# "privacy.clearOnShutdown.cache" = false;
|
||||
"privacy.clearOnShutdown.history" = false;
|
||||
"privacy.clearHistory.cookiesAndStorage" = false;
|
||||
"privacy.clearHistory.historyFormDataAndDownloads" = false;
|
||||
"privacy.clearHistory.cache" = false;
|
||||
"privacy.clearOnShutdown_v2.siteSettings" = false;
|
||||
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.history" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.siteSettings" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.sessions" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown_v2.cookies" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.history" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.siteSettings" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.sessions" = false;
|
||||
"services.sync.prefs.sync.privacy.clearOnShutdown.cookies" = false;
|
||||
"privacy.clearOnShutdown.cookies" = false;
|
||||
"browser.discovery.enabled" = false; # disable discovery
|
||||
"browser.search.suggest.enabled" = true; # disable search suggestions
|
||||
"browser.contentblocking.category" = "standart"; # set tracking protection to standart to not interfer with adnauseam
|
||||
"dom.private-attribution.submission.enabled" = false; # stop doing dumb stuff mozilla
|
||||
"browser.protections_panel.infoMessage.seen" = true; # disable tracking protection info
|
||||
|
||||
# Theme
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"svg.context-properties.content.enabled" = true;
|
||||
"layout.css.color-mix.enabled" = true;
|
||||
# Theme
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
"svg.context-properties.content.enabled" = true;
|
||||
"layout.css.color-mix.enabled" = true;
|
||||
|
||||
# Disable telemetry
|
||||
"toolkit.telemetry.enabled" = false;
|
||||
"toolkit.telemetry.unified" = false;
|
||||
"browser.ping-centre.telemetry" = false;
|
||||
"toolkit.telemetry.archive.enabled" = false;
|
||||
"toolkit.telemetry.bhrPing.enabled" = false;
|
||||
"toolkit.telemetry.updatePing.enabled" = false;
|
||||
"browser.translations.automaticallyPopup" = false;
|
||||
"toolkit.telemetry.hybridContent.enabled" = false;
|
||||
"toolkit.telemetry.newProfilePing.enabled" = false;
|
||||
"toolkit.telemetry.reportingpolicy.firstRun" = false;
|
||||
"toolkit.telemetry.firstShutdownPing.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.telemetry" = false;
|
||||
"toolkit.telemetry.shutdownPingSender.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
||||
# Disable telemetry
|
||||
"toolkit.telemetry.enabled" = false;
|
||||
"toolkit.telemetry.unified" = false;
|
||||
"browser.ping-centre.telemetry" = false;
|
||||
"toolkit.telemetry.archive.enabled" = false;
|
||||
"toolkit.telemetry.bhrPing.enabled" = false;
|
||||
"toolkit.telemetry.updatePing.enabled" = false;
|
||||
"browser.translations.automaticallyPopup" = false;
|
||||
"toolkit.telemetry.hybridContent.enabled" = false;
|
||||
"toolkit.telemetry.newProfilePing.enabled" = false;
|
||||
"toolkit.telemetry.reportingpolicy.firstRun" = false;
|
||||
"toolkit.telemetry.firstShutdownPing.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.telemetry" = false;
|
||||
"toolkit.telemetry.shutdownPingSender.enabled" = false;
|
||||
"browser.newtabpage.activity-stream.feeds.telemetry" = false;
|
||||
|
||||
"browser.tabs.loadInBackground" = true; # open new tab in background
|
||||
"browser.tabs.loadBookmarksInTabs" = true; # open bookmarks in new tab
|
||||
"browser.tabs.warnOnOpen" = false; # don't warn when opening multiple tabs
|
||||
"browser.tabs.warnOnQuit" = false; # don't warn when closing multiple tabs
|
||||
"browser.tabs.warnOnClose" = false; # don't warn when closing multiple tabs
|
||||
"browser.tabs.loadDivertedInBackground" = false; # open new tab in background
|
||||
"browser.tabs.warnOnCloseOtherTabs" = false; # don't warn when closing multiple tabs
|
||||
"browser.tabs.closeWindowWithLastTab" = false; # don't close window when last tab is closed
|
||||
"browser.tabs.loadInBackground" = true; # open new tab in background
|
||||
"browser.tabs.loadBookmarksInTabs" = true; # open bookmarks in new tab
|
||||
"browser.tabs.warnOnOpen" = false; # don't warn when opening multiple tabs
|
||||
"browser.tabs.warnOnQuit" = false; # don't warn when closing multiple tabs
|
||||
"browser.tabs.warnOnClose" = false; # don't warn when closing multiple tabs
|
||||
"browser.tabs.loadDivertedInBackground" = false; # open new tab in background
|
||||
"browser.tabs.warnOnCloseOtherTabs" = false; # don't warn when closing multiple tabs
|
||||
"browser.tabs.closeWindowWithLastTab" = false; # don't close window when last tab is closed
|
||||
|
||||
# other
|
||||
"media.autoplay.default" = 0; # enable autoplay on open
|
||||
"devtools.toolbox.host" = "right"; # move devtools to right
|
||||
"devtools.theme" = "dark";
|
||||
# "browser.ssb.enabled" = true; # enable site specific browser
|
||||
"media.rdd-vpx.enabled" = true; # enable hardware acceleration
|
||||
"devtools.cache.disabled" = true; # disable caching in devtools
|
||||
"media.ffmpeg.vaapi.enabled" = true; # enable hardware acceleration
|
||||
|
||||
# Fonts
|
||||
"font.size.fixed.x-western" = 15;
|
||||
"font.minimum-size.x-western" = 13;
|
||||
"font.size.variable.x-western" = 15;
|
||||
"font.size.monospace.x-western" = 15;
|
||||
"browser.display.use_document_fonts" = 1;
|
||||
"browser.link.open_newwindow.restriction" = 0;
|
||||
#
|
||||
# "browser.fixup.domainsuffixwhitelist.home" = true;
|
||||
# "browser.fixup.domainwhitelist.internal.contre.io" = true;
|
||||
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
||||
# "keyword.enable" = false; # Disable search when typing unexistent TLD
|
||||
# other
|
||||
"media.autoplay.default" = 0; # enable autoplay on open
|
||||
"devtools.toolbox.host" = "right"; # move devtools to right
|
||||
"devtools.theme" = "dark";
|
||||
# "browser.ssb.enabled" = true; # enable site specific browser
|
||||
"media.rdd-vpx.enabled" = true; # enable hardware acceleration
|
||||
"devtools.cache.disabled" = true; # disable caching in devtools
|
||||
"media.ffmpeg.vaapi.enabled" = true; # enable hardware acceleration
|
||||
|
||||
# Fonts
|
||||
"font.size.fixed.x-western" = 15;
|
||||
"font.minimum-size.x-western" = 13;
|
||||
"font.size.variable.x-western" = 15;
|
||||
"font.size.monospace.x-western" = 15;
|
||||
"browser.display.use_document_fonts" = 1;
|
||||
"browser.link.open_newwindow.restriction" = 0;
|
||||
#
|
||||
# "browser.fixup.domainsuffixwhitelist.home" = true;
|
||||
# "browser.fixup.domainwhitelist.internal.contre.io" = true;
|
||||
"extensions.activeThemeID" = "firefox-compact-dark@mozilla.org";
|
||||
# "keyword.enable" = false; # Disable search when typing unexistent TLD
|
||||
};
|
||||
policies = {
|
||||
ExtensionSettings = {
|
||||
# the extension id should be from the manifesto and not a random name.
|
||||
# if you dont know it. Put a random name. It will fail. Go to about:polices#error and the error will give you the correct id.
|
||||
# if you dont know it. Put a random name. It will fail. Go to about:polices#error and the error will give you the correct id.
|
||||
"enhancerforyoutube@maximerf.addons.mozilla.org" = {
|
||||
installation_mode = "normal_installed";
|
||||
install_url = "https://addons.mozilla.org/firefox/downloads/latest/enhancer-for-youtube/latest.xpi";
|
||||
@@ -292,7 +294,7 @@
|
||||
settings = [
|
||||
{
|
||||
name = "Nixos Config";
|
||||
tags = [ "github" ];
|
||||
tags = ["github"];
|
||||
keyword = "github";
|
||||
url = "https://github.com/Totorile1/nixos";
|
||||
}
|
||||
@@ -329,7 +331,7 @@
|
||||
template = "https://fr.wiktionary.org/w/index.php?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
definedAliases = [ "dict" ];
|
||||
definedAliases = ["dict"];
|
||||
};
|
||||
"quant" = {
|
||||
urls = [
|
||||
@@ -343,7 +345,7 @@
|
||||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "q" ];
|
||||
definedAliases = ["q"];
|
||||
};
|
||||
"OpenStreeetMap" = {
|
||||
urls = [
|
||||
@@ -357,7 +359,7 @@
|
||||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "map" ];
|
||||
definedAliases = ["map"];
|
||||
};
|
||||
"Home Manager Options" = {
|
||||
urls = [
|
||||
@@ -371,7 +373,7 @@
|
||||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "hm" ];
|
||||
definedAliases = ["hm"];
|
||||
};
|
||||
"Nix Packages" = {
|
||||
urls = [
|
||||
@@ -389,7 +391,7 @@
|
||||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "np" ];
|
||||
definedAliases = ["np"];
|
||||
};
|
||||
"Nix Wiki" = {
|
||||
urls = [
|
||||
@@ -397,7 +399,7 @@
|
||||
template = "https://wiki.nixos.org/w/index.php?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
definedAliases = [ "nw" ];
|
||||
definedAliases = ["nw"];
|
||||
};
|
||||
"Repology" = {
|
||||
urls = [
|
||||
@@ -405,7 +407,7 @@
|
||||
template = "https://repology.org/projects/?search={searchTerms}";
|
||||
}
|
||||
];
|
||||
definedAliases = [ "rp" ];
|
||||
definedAliases = ["rp"];
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -569,7 +571,7 @@
|
||||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "q" ];
|
||||
definedAliases = ["q"];
|
||||
};
|
||||
"OpenStreeetMap" = {
|
||||
urls = [
|
||||
@@ -583,20 +585,18 @@
|
||||
];
|
||||
}
|
||||
];
|
||||
definedAliases = [ "map" ];
|
||||
definedAliases = ["map"];
|
||||
};
|
||||
"Onche.org" = {
|
||||
urls = [
|
||||
{
|
||||
template = "https://onche.org/forum/1/blabla-general/search?by=topic&q={searchTerms}";
|
||||
template = "https://onche.org/forum/1/blabla-general/search?by=topic&q={searchTerms}";
|
||||
}
|
||||
];
|
||||
definedAliases = [ "on" ];
|
||||
definedAliases = ["on"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user