Remove chromium and switch back to firefox (again)
Update firefox policy settings Remove chromium and qutebrowser from waybar Add mozilla policy bookmark to nyxt bookmarks
This commit is contained in:
parent
b06261df14
commit
80b6ecbd2e
|
@ -1,5 +1,8 @@
|
|||
(
|
||||
;; Home
|
||||
( :url "https://mozilla.github.io/policy-templates/"
|
||||
:title "Mozilla Policy Templates"
|
||||
:tags ("Home"))
|
||||
( :url "https://chromeenterprise.google/policies/"
|
||||
:title "Chrome Enterprise policy list and management | Documentation"
|
||||
:tags ("Home"))
|
||||
|
|
|
@ -38,9 +38,7 @@
|
|||
"(.*) - GNU Emacs at (.*)" = " $1 [$2]";
|
||||
"Alacritty" = " ";
|
||||
"Nyxt - (.*)" = " $1";
|
||||
"(.*) - qutebrowser" = " $1";
|
||||
"(.*) — Mozilla Firefox" = " $1";
|
||||
"(.*) - Chromium" = " $1";
|
||||
".*WebCord (.*)" = " $1";
|
||||
"[Ss]team" = " ";
|
||||
"(.*) - mpv" = " $1";
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
{pkgs, ...}: {
|
||||
environment.systemPackages = [pkgs.ungoogled-chromium];
|
||||
{...}: {
|
||||
programs.chromium = {
|
||||
enable = true;
|
||||
defaultSearchProviderEnabled = true;
|
||||
defaultSearchProviderSearchURL = "https://search.atlas.engineer/searxng/search?q={searchTerms}";
|
||||
defaultSearchProviderSuggestURL = "https://duckduckgo.com/?q={searchTerms}";
|
||||
# extensions = [
|
||||
# "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
|
||||
# ];
|
||||
extraOpts = {
|
||||
"BrowserSignin" = 0;
|
||||
"ClearBrowsingDataOnExitList" = [
|
||||
|
@ -17,8 +13,8 @@
|
|||
"cached_images_and_files"
|
||||
"password_signin"
|
||||
"autofill"
|
||||
# "site_settings"
|
||||
# "hosted_app_data"
|
||||
"site_settings"
|
||||
"hosted_app_data"
|
||||
];
|
||||
"DefaultBrowserSettingEnabled" = false;
|
||||
"DeviceAutoUpdateDisabled" = true;
|
||||
|
|
|
@ -3,25 +3,46 @@
|
|||
enable = true;
|
||||
languagePacks = ["en-GB"];
|
||||
policies = {
|
||||
BlockAboutProfiles = true;
|
||||
Containers = {
|
||||
Default = [
|
||||
{
|
||||
name = "Personal";
|
||||
icon = "fingerprint";
|
||||
color = "purple";
|
||||
}
|
||||
{
|
||||
name = "Work";
|
||||
icon = "briefcase";
|
||||
color = "blue";
|
||||
}
|
||||
];
|
||||
};
|
||||
Cookies = {
|
||||
Behavior = "reject-tracker-and-partition-foreign";
|
||||
BehaviorPrivateBrowsing = "reject";
|
||||
Locked = true;
|
||||
};
|
||||
DefaultDownloadDirectory = "\${home}/Downloads";
|
||||
DisableAppUpdate = true;
|
||||
DisableBuiltinPDFViewer = true;
|
||||
# DisableBuiltinPDFViewer = true;
|
||||
DisableFirefoxAccounts = true;
|
||||
DisableFirefoxScreenshots = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisableFormHistory = true;
|
||||
DisablePocket = true;
|
||||
DisableProfileImport = true;
|
||||
DisableSetDesktopBackground = true;
|
||||
DisableSystemAddonUpdate = true;
|
||||
DisableTelemetry = true;
|
||||
DisplayBookmarksToolbar = "newtab";
|
||||
DisplayMenuBar = "default-off";
|
||||
DontCheckDefaultBrowser = true;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
EmailTracking = true;
|
||||
};
|
||||
ExtensionSettings = {
|
||||
"queryamoid@kaply.com" = {
|
||||
|
@ -40,7 +61,7 @@
|
|||
};
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
TopSites = true;
|
||||
TopSites = false;
|
||||
SponsoredTopSites = false;
|
||||
Highlights = false;
|
||||
Pocket = false;
|
||||
|
@ -48,7 +69,18 @@
|
|||
Snippets = false;
|
||||
Locked = true;
|
||||
};
|
||||
FirefoxSuggest = {
|
||||
WebSuggestions = false;
|
||||
SponsoredSuggestions = false;
|
||||
ImproveSuggest = false;
|
||||
Locked = true;
|
||||
};
|
||||
HardwareAcceleration = true;
|
||||
Homepage = {
|
||||
Locked = true;
|
||||
};
|
||||
ManagedBookmarks = [
|
||||
# TODO update these
|
||||
{toplevel_name = "Managed Bookmarks";}
|
||||
{
|
||||
name = "Server";
|
||||
|
@ -114,12 +146,32 @@
|
|||
];
|
||||
}
|
||||
];
|
||||
NewTabPage = false;
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
PasswordManagerEnabled = false;
|
||||
PDFjs = {Enabled = false;};
|
||||
Permissions = {
|
||||
Autoplay = {
|
||||
Default = "block-audio-video";
|
||||
};
|
||||
};
|
||||
PictureInPicture = {Enabled = true;};
|
||||
PopupBlocking = {Default = true;};
|
||||
Preferences = {};
|
||||
RequestedLocales = ["en-GB"];
|
||||
SearchEngines = {Default = "DuckDuckGo";};
|
||||
SanitizeOnShutdown = {
|
||||
Cache = true;
|
||||
Cookies = true;
|
||||
Downloads = true;
|
||||
FormData = true;
|
||||
History = true;
|
||||
Sessions = true;
|
||||
SiteSettings = false;
|
||||
OfflineApps = false;
|
||||
Locked = true;
|
||||
};
|
||||
SearchBar = "unified";
|
||||
ShowHomeButton = false;
|
||||
StartDownloadsInTempDirectory = true;
|
||||
};
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
imports = [./desktop.nix ./chromium.nix];
|
||||
imports = [./desktop.nix ./firefox.nix ./chromium.nix];
|
||||
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
|
||||
environment = {
|
||||
sessionVariables = {
|
||||
|
@ -38,7 +38,7 @@
|
|||
emacs = ["emacsclient.desktop" "emacs.desktop"];
|
||||
# TODO add nyxt back to browser when I can fix opening
|
||||
# links in existing sessions
|
||||
browser = ["chromium-browser.desktop"]; # nyxt.desktop
|
||||
browser = ["firefox.desktop"]; # nyxt.desktop
|
||||
applications = {
|
||||
"inode/directory" = emacs;
|
||||
"inode/symlink" = emacs;
|
||||
|
|
Loading…
Reference in a new issue