Auto-commit: 2026-01-05 17:51:14
This commit is contained in:
@@ -1,98 +1,100 @@
|
|||||||
{ inputs, pkgs, ... }:
|
{ inputs, pkgs, nixosConfig, lib, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.zen-browser.homeModules.beta
|
inputs.zen-browser.homeModules.beta
|
||||||
];
|
];
|
||||||
home.file."catppuccin-zen" = {
|
config = lib.mkIf nixosConfig.my.desktop.enable {
|
||||||
target = ".zen/default/chrome/catppuccin-zen";
|
home.file."catppuccin-zen" = {
|
||||||
source = (
|
target = ".zen/default/chrome/catppuccin-zen";
|
||||||
fetchTarball {
|
source = (
|
||||||
url = "https://github.com/catppuccin/zen-browser/tarball/c855685442c6040c4dda9c8d3ddc7b708de1cbaa";
|
fetchTarball {
|
||||||
sha256 = "sha256:03ky8s5h9vkw4cp3nm86b0bk5qbjmqgyqq9a95xqzard4wppn3p4";
|
url = "https://github.com/catppuccin/zen-browser/tarball/c855685442c6040c4dda9c8d3ddc7b708de1cbaa";
|
||||||
});
|
sha256 = "sha256:03ky8s5h9vkw4cp3nm86b0bk5qbjmqgyqq9a95xqzard4wppn3p4";
|
||||||
};
|
});
|
||||||
programs.zen-browser = {
|
};
|
||||||
enable = true;
|
programs.zen-browser = {
|
||||||
nativeMessagingHosts = [pkgs.firefoxpwa];
|
enable = true;
|
||||||
policies = {
|
nativeMessagingHosts = [pkgs.firefoxpwa];
|
||||||
AutofillAddressEnabled = false;
|
policies = {
|
||||||
AutofillCreditCardEnabled = false;
|
AutofillAddressEnabled = false;
|
||||||
DisableAppUpdate = true;
|
AutofillCreditCardEnabled = false;
|
||||||
DisableFeedbackCommands = true;
|
DisableAppUpdate = true;
|
||||||
DisableFirefoxStudies = true;
|
DisableFeedbackCommands = true;
|
||||||
DisablePocket = true;
|
DisableFirefoxStudies = true;
|
||||||
DisableTelemetry = true;
|
DisablePocket = true;
|
||||||
DontCheckDefaultBrowser = true;
|
DisableTelemetry = true;
|
||||||
NoDefaultBookmarks = true;
|
DontCheckDefaultBrowser = true;
|
||||||
OfferToSaveLogins = false;
|
NoDefaultBookmarks = true;
|
||||||
EnableTrackingProtection = {
|
OfferToSaveLogins = false;
|
||||||
Value = true;
|
EnableTrackingProtection = {
|
||||||
Locked = true;
|
Value = true;
|
||||||
Cryptomining = true;
|
Locked = true;
|
||||||
Fingerprinting = true;
|
Cryptomining = true;
|
||||||
|
Fingerprinting = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
profiles.default.settings = {
|
||||||
|
"zen.view.use-single-toolbar" = false;
|
||||||
|
"zen.urlbar.replace-newtab" = false;
|
||||||
|
"identity.fxaccounts.autoconfig.uri" = "https://www.fxa.hibana.me";
|
||||||
|
"general.autoScroll" = true;
|
||||||
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||||
|
};
|
||||||
|
profiles.default.extensions.packages =
|
||||||
|
with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
||||||
|
ublock-origin
|
||||||
|
dearrow
|
||||||
|
bitwarden
|
||||||
|
istilldontcareaboutcookies
|
||||||
|
return-youtube-dislikes
|
||||||
|
sponsorblock
|
||||||
|
youtube-nonstop
|
||||||
|
youtube-high-definition
|
||||||
|
absolute-enable-right-click
|
||||||
|
augmented-steam
|
||||||
|
clearurls
|
||||||
|
darkreader
|
||||||
|
karakeep
|
||||||
|
newtab-adapter
|
||||||
|
steam-database
|
||||||
|
unpaywall
|
||||||
|
violentmonkey
|
||||||
|
];
|
||||||
|
profiles.default.userChrome = ''
|
||||||
|
@import "catppuccin-zen/themes/Mocha/Mauve/userChrome.css";
|
||||||
|
'';
|
||||||
|
profiles.default.userContent = ''
|
||||||
|
@import "catppuccin-zen/themes/Mocha/Mauve/userContent.css";
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
profiles.default.settings = {
|
xdg.mimeApps = let
|
||||||
"zen.view.use-single-toolbar" = false;
|
value = let
|
||||||
"zen.urlbar.replace-newtab" = false;
|
zen-browser = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.beta; # or twilight
|
||||||
"identity.fxaccounts.autoconfig.uri" = "https://www.fxa.hibana.me";
|
in
|
||||||
"general.autoScroll" = true;
|
zen-browser.meta.desktopFileName;
|
||||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
||||||
};
|
|
||||||
profiles.default.extensions.packages =
|
|
||||||
with inputs.firefox-addons.packages.${pkgs.stdenv.hostPlatform.system}; [
|
|
||||||
ublock-origin
|
|
||||||
dearrow
|
|
||||||
bitwarden
|
|
||||||
istilldontcareaboutcookies
|
|
||||||
return-youtube-dislikes
|
|
||||||
sponsorblock
|
|
||||||
youtube-nonstop
|
|
||||||
youtube-high-definition
|
|
||||||
absolute-enable-right-click
|
|
||||||
augmented-steam
|
|
||||||
clearurls
|
|
||||||
darkreader
|
|
||||||
karakeep
|
|
||||||
newtab-adapter
|
|
||||||
steam-database
|
|
||||||
unpaywall
|
|
||||||
violentmonkey
|
|
||||||
];
|
|
||||||
profiles.default.userChrome = ''
|
|
||||||
@import "catppuccin-zen/themes/Mocha/Mauve/userChrome.css";
|
|
||||||
'';
|
|
||||||
profiles.default.userContent = ''
|
|
||||||
@import "catppuccin-zen/themes/Mocha/Mauve/userContent.css";
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
xdg.mimeApps = let
|
|
||||||
value = let
|
|
||||||
zen-browser = inputs.zen-browser.packages.${pkgs.stdenv.hostPlatform.system}.beta; # or twilight
|
|
||||||
in
|
|
||||||
zen-browser.meta.desktopFileName;
|
|
||||||
|
|
||||||
associations = builtins.listToAttrs (map (name: {
|
associations = builtins.listToAttrs (map (name: {
|
||||||
inherit name value;
|
inherit name value;
|
||||||
}) [
|
}) [
|
||||||
"application/x-extension-shtml"
|
"application/x-extension-shtml"
|
||||||
"application/x-extension-xhtml"
|
"application/x-extension-xhtml"
|
||||||
"application/x-extension-html"
|
"application/x-extension-html"
|
||||||
"application/x-extension-xht"
|
"application/x-extension-xht"
|
||||||
"application/x-extension-htm"
|
"application/x-extension-htm"
|
||||||
"x-scheme-handler/unknown"
|
"x-scheme-handler/unknown"
|
||||||
"x-scheme-handler/mailto"
|
"x-scheme-handler/mailto"
|
||||||
"x-scheme-handler/chrome"
|
"x-scheme-handler/chrome"
|
||||||
"x-scheme-handler/about"
|
"x-scheme-handler/about"
|
||||||
"x-scheme-handler/https"
|
"x-scheme-handler/https"
|
||||||
"x-scheme-handler/http"
|
"x-scheme-handler/http"
|
||||||
"application/xhtml+xml"
|
"application/xhtml+xml"
|
||||||
"application/json"
|
"application/json"
|
||||||
"text/plain"
|
"text/plain"
|
||||||
"text/html"
|
"text/html"
|
||||||
]);
|
]);
|
||||||
in {
|
in {
|
||||||
associations.added = associations;
|
associations.added = associations;
|
||||||
defaultApplications = associations;
|
defaultApplications = associations;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user