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:
Evie Litherland-Smith 2024-02-07 07:14:12 +00:00
parent b06261df14
commit 80b6ecbd2e
5 changed files with 64 additions and 15 deletions

View file

@ -1,5 +1,8 @@
( (
;; Home ;; Home
( :url "https://mozilla.github.io/policy-templates/"
:title "Mozilla Policy Templates"
:tags ("Home"))
( :url "https://chromeenterprise.google/policies/" ( :url "https://chromeenterprise.google/policies/"
:title "Chrome Enterprise policy list and management | Documentation" :title "Chrome Enterprise policy list and management | Documentation"
:tags ("Home")) :tags ("Home"))

View file

@ -38,9 +38,7 @@
"(.*) - GNU Emacs at (.*)" = " $1 [$2]"; "(.*) - GNU Emacs at (.*)" = " $1 [$2]";
"Alacritty" = " "; "Alacritty" = " ";
"Nyxt - (.*)" = "󰀹 $1"; "Nyxt - (.*)" = "󰀹 $1";
"(.*) - qutebrowser" = "󰀹 $1";
"(.*) Mozilla Firefox" = "󰈹 $1"; "(.*) Mozilla Firefox" = "󰈹 $1";
"(.*) - Chromium" = "󰊯 $1";
".*WebCord (.*)" = "󰙯 $1"; ".*WebCord (.*)" = "󰙯 $1";
"[Ss]team" = "󰓓 "; "[Ss]team" = "󰓓 ";
"(.*) - mpv" = "󰦟 $1"; "(.*) - mpv" = "󰦟 $1";

View file

@ -1,13 +1,9 @@
{pkgs, ...}: { {...}: {
environment.systemPackages = [pkgs.ungoogled-chromium];
programs.chromium = { programs.chromium = {
enable = true; enable = true;
defaultSearchProviderEnabled = true; defaultSearchProviderEnabled = true;
defaultSearchProviderSearchURL = "https://search.atlas.engineer/searxng/search?q={searchTerms}"; defaultSearchProviderSearchURL = "https://search.atlas.engineer/searxng/search?q={searchTerms}";
defaultSearchProviderSuggestURL = "https://duckduckgo.com/?q={searchTerms}"; defaultSearchProviderSuggestURL = "https://duckduckgo.com/?q={searchTerms}";
# extensions = [
# "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin
# ];
extraOpts = { extraOpts = {
"BrowserSignin" = 0; "BrowserSignin" = 0;
"ClearBrowsingDataOnExitList" = [ "ClearBrowsingDataOnExitList" = [
@ -17,8 +13,8 @@
"cached_images_and_files" "cached_images_and_files"
"password_signin" "password_signin"
"autofill" "autofill"
# "site_settings" "site_settings"
# "hosted_app_data" "hosted_app_data"
]; ];
"DefaultBrowserSettingEnabled" = false; "DefaultBrowserSettingEnabled" = false;
"DeviceAutoUpdateDisabled" = true; "DeviceAutoUpdateDisabled" = true;

View file

@ -3,25 +3,46 @@
enable = true; enable = true;
languagePacks = ["en-GB"]; languagePacks = ["en-GB"];
policies = { policies = {
BlockAboutProfiles = true;
Containers = {
Default = [
{
name = "Personal";
icon = "fingerprint";
color = "purple";
}
{
name = "Work";
icon = "briefcase";
color = "blue";
}
];
};
Cookies = { Cookies = {
Behavior = "reject-tracker-and-partition-foreign"; Behavior = "reject-tracker-and-partition-foreign";
BehaviorPrivateBrowsing = "reject";
Locked = true; Locked = true;
}; };
DefaultDownloadDirectory = "\${home}/Downloads";
DisableAppUpdate = true; DisableAppUpdate = true;
DisableBuiltinPDFViewer = true; # DisableBuiltinPDFViewer = true;
DisableFirefoxAccounts = true; DisableFirefoxAccounts = true;
DisableFirefoxScreenshots = true;
DisableFirefoxStudies = true; DisableFirefoxStudies = true;
DisableFormHistory = true;
DisablePocket = true;
DisableProfileImport = true; DisableProfileImport = true;
DisableSetDesktopBackground = true; DisableSetDesktopBackground = true;
DisableSystemAddonUpdate = true; DisableSystemAddonUpdate = true;
DisableTelemetry = true; DisableTelemetry = true;
DisplayBookmarksToolbar = "newtab"; DisplayBookmarksToolbar = "newtab";
DisplayMenuBar = "default-off"; DisplayMenuBar = "default-off";
DontCheckDefaultBrowser = true;
EnableTrackingProtection = { EnableTrackingProtection = {
Value = true; Value = true;
Locked = true;
Cryptomining = true; Cryptomining = true;
Fingerprinting = true; Fingerprinting = true;
EmailTracking = true;
}; };
ExtensionSettings = { ExtensionSettings = {
"queryamoid@kaply.com" = { "queryamoid@kaply.com" = {
@ -40,7 +61,7 @@
}; };
FirefoxHome = { FirefoxHome = {
Search = true; Search = true;
TopSites = true; TopSites = false;
SponsoredTopSites = false; SponsoredTopSites = false;
Highlights = false; Highlights = false;
Pocket = false; Pocket = false;
@ -48,7 +69,18 @@
Snippets = false; Snippets = false;
Locked = true; Locked = true;
}; };
FirefoxSuggest = {
WebSuggestions = false;
SponsoredSuggestions = false;
ImproveSuggest = false;
Locked = true;
};
HardwareAcceleration = true;
Homepage = {
Locked = true;
};
ManagedBookmarks = [ ManagedBookmarks = [
# TODO update these
{toplevel_name = "Managed Bookmarks";} {toplevel_name = "Managed Bookmarks";}
{ {
name = "Server"; name = "Server";
@ -114,12 +146,32 @@
]; ];
} }
]; ];
NewTabPage = false;
NoDefaultBookmarks = true; NoDefaultBookmarks = true;
OfferToSaveLogins = false; OfferToSaveLogins = false;
PasswordManagerEnabled = false; PasswordManagerEnabled = false;
PDFjs = {Enabled = false;};
Permissions = {
Autoplay = {
Default = "block-audio-video";
};
};
PictureInPicture = {Enabled = true;};
PopupBlocking = {Default = true;}; PopupBlocking = {Default = true;};
Preferences = {};
RequestedLocales = ["en-GB"]; 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; ShowHomeButton = false;
StartDownloadsInTempDirectory = true; StartDownloadsInTempDirectory = true;
}; };

View file

@ -1,5 +1,5 @@
{pkgs, ...}: { {pkgs, ...}: {
imports = [./desktop.nix ./chromium.nix]; imports = [./desktop.nix ./firefox.nix ./chromium.nix];
nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland"; nixpkgs.config.chromium.commandLineArgs = "--enable-features=UseOzonePlatform --ozone-platform=wayland";
environment = { environment = {
sessionVariables = { sessionVariables = {
@ -38,7 +38,7 @@
emacs = ["emacsclient.desktop" "emacs.desktop"]; emacs = ["emacsclient.desktop" "emacs.desktop"];
# TODO add nyxt back to browser when I can fix opening # TODO add nyxt back to browser when I can fix opening
# links in existing sessions # links in existing sessions
browser = ["chromium-browser.desktop"]; # nyxt.desktop browser = ["firefox.desktop"]; # nyxt.desktop
applications = { applications = {
"inode/directory" = emacs; "inode/directory" = emacs;
"inode/symlink" = emacs; "inode/symlink" = emacs;