feat(desktop): add zen-browser flake.
This commit is contained in:
parent
3293889e2d
commit
d9a1aa38e7
5 changed files with 96 additions and 1 deletions
|
|
@ -20,6 +20,7 @@
|
|||
./pipewire.nix
|
||||
./secrets.nix
|
||||
./emacs.nix
|
||||
./zen-browser.nix
|
||||
];
|
||||
|
||||
crony.river.enable = lib.mkDefault false;
|
||||
|
|
@ -42,4 +43,5 @@
|
|||
crony.pipewire.enable = lib.mkDefault true;
|
||||
crony.home-secrets.enable = lib.mkDefault false;
|
||||
crony.emacs.enable = lib.mkDefault false;
|
||||
crony.zen-browser.enable = lib.mkDefault false;
|
||||
}
|
||||
|
|
|
|||
42
modules/linux/home-manager/zen-browser.nix
Normal file
42
modules/linux/home-manager/zen-browser.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options = {
|
||||
crony.zen-browser.enable = lib.mkEnableOption "Enable and setup zen browser";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.crony.zen-browser.enable {
|
||||
programs.zen-browser = {
|
||||
enable = true;
|
||||
profiles = {
|
||||
main = {};
|
||||
};
|
||||
policies = {
|
||||
AutofillAddressEnabled = true;
|
||||
AutofillCreditCardEnabled = false;
|
||||
DisableAppUpdate = true;
|
||||
DisableFeedbackCommands = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
DontCheckDefaultBrowser = false;
|
||||
NoDefaultBookmarks = true;
|
||||
OfferToSaveLogins = false;
|
||||
EnableTrackingProtection = {
|
||||
Value = true;
|
||||
Locked = true;
|
||||
Cryptomining = true;
|
||||
Fingerprinting = true;
|
||||
};
|
||||
};
|
||||
nativeMessagingHosts = with pkgs; [
|
||||
keepassxc
|
||||
];
|
||||
};
|
||||
|
||||
stylix.targets.zen-browser.profileNames = ["main"];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue