mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-04 12:02:09 +02:00
zen global config init
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> Former-commit-id: 13d6150a4592ca4cd5e3f4950c838ae57523727c
This commit is contained in:
@@ -1,14 +1,30 @@
|
|||||||
# Zen is a minimalistic web browser.
|
# Zen is a minimalistic web browser.
|
||||||
{ pkgs, inputs, ... }:
|
{
|
||||||
let
|
pkgs,
|
||||||
# Create a wrapper script for zen-browser with Wayland enabled
|
inputs,
|
||||||
zenWithWayland = pkgs.symlinkJoin {
|
...
|
||||||
name = "zen-browser-wayland";
|
}: {
|
||||||
paths = [ inputs.zen-browser.packages."${pkgs.system}".default ];
|
imports = [
|
||||||
buildInputs = [ pkgs.makeWrapper ];
|
inputs.zen-browser.homeModules.beta
|
||||||
postBuild = ''
|
];
|
||||||
wrapProgram $out/bin/zen \
|
|
||||||
--set MOZ_ENABLE_WAYLAND 1
|
programs.zen-browser = {
|
||||||
'';
|
enable = true;
|
||||||
|
policies = {
|
||||||
|
DisableAppUpdate = true;
|
||||||
|
DisableTelemetry = true;
|
||||||
|
|
||||||
|
AutofillAddressesEnabled = false;
|
||||||
|
AutoFillCreditCardEnabled = false;
|
||||||
|
DisablePocket = true;
|
||||||
|
DisableProfileImport = true;
|
||||||
|
DisableSetDesktopBackground = true;
|
||||||
|
DontCheckDefaultBrowser = true;
|
||||||
|
HomepageURL = "https://start.hadi.diy";
|
||||||
|
StartPage = "homepage";
|
||||||
|
NewTabPage = true;
|
||||||
|
OfferToSaveLogins = false;
|
||||||
|
# find more options here: https://mozilla.github.io/policy-templates/
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in { home.packages = [ zenWithWayland ]; }
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user