mirror of
https://github.com/RGBCube/ncc
synced 2025-09-13 01:27:56 +00:00
zen-browser: init
This commit is contained in:
parent
d84249b3f2
commit
48fedaa89f
6 changed files with 109 additions and 5 deletions
63
modules/common/zen-browser.nix
Normal file
63
modules/common/zen-browser.nix
Normal file
|
@ -0,0 +1,63 @@
|
|||
{ lib, ... }: let
|
||||
inherit (lib) enabled merge;
|
||||
|
||||
lockedAs = Value: merge {
|
||||
inherit Value;
|
||||
Locked = true;
|
||||
};
|
||||
|
||||
locked = merge { Locked = true; };
|
||||
in {
|
||||
home-manager.sharedModules = [{
|
||||
programs.zen-browser = enabled {
|
||||
# package = mkIf config.isDarwin null;
|
||||
|
||||
policies = {
|
||||
AutofillAddressEnabled = false;
|
||||
AutofillCreditCardEnabled = false;
|
||||
|
||||
DisableAppUpdate = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
|
||||
# We want Zen to be the default browser.
|
||||
DontCheckDefaultBrowser = false;
|
||||
|
||||
NoDefaultBookmarks = true;
|
||||
|
||||
# I accept the terms of use.
|
||||
SkipTermsOfUse = true;
|
||||
|
||||
PictureInPicture = lockedAs false;
|
||||
|
||||
Homepage.StartPage = "previous-session";
|
||||
|
||||
EnableTrackingProtection = lockedAs true {
|
||||
Cryptomining = true;
|
||||
EmailTracking = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
|
||||
UserMessaging = locked {
|
||||
ExtensionRecommendations = false;
|
||||
FeatureRecommendations = false;
|
||||
FirefoxLabs = false;
|
||||
MoreFromMozilla = false;
|
||||
SkipOnboarding = true;
|
||||
};
|
||||
|
||||
FirefoxSuggest = locked {
|
||||
ImproveSuggest = false;
|
||||
SponsoredSuggestions = false;
|
||||
WebSuggestions = false;
|
||||
};
|
||||
};
|
||||
|
||||
# policies.Preferences = {
|
||||
|
||||
# };
|
||||
};
|
||||
}];
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
{
|
||||
{ config, ... }: {
|
||||
system.defaults.dock = {
|
||||
autohide = true;
|
||||
showhidden = true; # Translucent.
|
||||
|
@ -14,7 +14,8 @@
|
|||
enable-spring-load-actions-on-all-items = true;
|
||||
|
||||
persistent-apps = [
|
||||
{ app = "/Applications/Zen.app"; }
|
||||
{ app = "${config.home-manager.users.${config.system.primaryUser}
|
||||
.programs.zen-browser.package}/Applications/Zen Browser (Beta).app"; }
|
||||
{ app = "/Applications/Ghostty.app"; }
|
||||
];
|
||||
};
|
||||
|
|
|
@ -225,7 +225,7 @@ in {
|
|||
hs.hotkey.bind(super, "f", PaperWM.actions.toggle_floating)
|
||||
|
||||
-- APPLICATIONS
|
||||
hs.hotkey.bind(super, "w", function() hs.application.launchOrFocus("Zen") end)
|
||||
hs.hotkey.bind(super, "w", function() hs.application.launchOrFocus("Zen Browser (Beta)") end)
|
||||
hs.hotkey.bind(super, "return", function() hs.application.launchOrFocus("Ghostty") end)
|
||||
hs.hotkey.bind(super, "t", function() hs.application.launchOrFocus("Finder") end)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue