feat: add nixos and hm config

This commit is contained in:
js0ny 2025-10-11 11:26:21 +01:00
parent 8db7f8a1e9
commit ffafb4a329
54 changed files with 1282 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{
pkgs,
config,
...
}: {
programs.firefox = {
enable = true;
languagePacks = ["zh-CN"];
preferences = {
"widget.use-xdg-desktop-portal.file-picker" = 1;
};
policies = {
DisableTelemetry = true;
BlockAboutConfig = false;
DontCheckDefaultBrowser = true;
ExtensionSettings = let
moz = short: "https://addons.mozilla.org/firefox/downloads/latest/${short}/latest.xpi";
in {
"*".installation_mode = "blocked";
"uBlock0@raymondhill.net" = {
install_url = moz "ublock-origin";
installation_mode = "force_installed";
updates_disabled = true;
};
};
};
};
}