mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 11:12: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.
|
||||
{ pkgs, inputs, ... }:
|
||||
let
|
||||
# Create a wrapper script for zen-browser with Wayland enabled
|
||||
zenWithWayland = pkgs.symlinkJoin {
|
||||
name = "zen-browser-wayland";
|
||||
paths = [ inputs.zen-browser.packages."${pkgs.system}".default ];
|
||||
buildInputs = [ pkgs.makeWrapper ];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/zen \
|
||||
--set MOZ_ENABLE_WAYLAND 1
|
||||
'';
|
||||
{
|
||||
pkgs,
|
||||
inputs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
inputs.zen-browser.homeModules.beta
|
||||
];
|
||||
|
||||
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