update flake.lock; add firefox extensions as policies

This commit is contained in:
2025-01-12 20:24:45 +00:00
parent 239ffe5083
commit 3062a5d444
3 changed files with 58 additions and 11 deletions

18
flake.lock generated
View File

@@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1736591904, "lastModified": 1736711425,
"narHash": "sha256-LFO8pSrPKrH8OPq2HaAuBG5skk8/MNJ/9YmK3KsnSks=", "narHash": "sha256-8hKhPQuMtXfJi+4lPvw3FBk/zSJVHeb726Zo0uF1PP8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "disko", "repo": "disko",
"rev": "33827d2bd16bfe2e21b62956526c72d313595dfd", "rev": "f720e64ec37fa16ebba6354eadf310f81555cc07",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -82,11 +82,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1736560114, "lastModified": 1736646936,
"narHash": "sha256-+kL+Nw3eEToKDalXJqa6fjLQqgTftTWLypr4Hj7tFKw=", "narHash": "sha256-NJaM0SiWs6nSZCQ9w3H9cV6ysg447/PYoBpMWYV12h4=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nix-vscode-extensions", "repo": "nix-vscode-extensions",
"rev": "e26efb7bac0fcdc28b92596c5c2acaaf4713124f", "rev": "5669bbca35e6dd98ba43477e2fa4d87d0a0da3db",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -113,11 +113,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1736344531, "lastModified": 1736523798,
"narHash": "sha256-8YVQ9ZbSfuUk2bUf2KRj60NRraLPKPS0Q4QFTbc+c2c=", "narHash": "sha256-Xb8mke6UCYjge9kPR9o4P1nVrhk7QBbKv3xQ9cj7h2s=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "bffc22eb12172e6db3c5dde9e3e5628f8e3e7912", "rev": "130595eba61081acde9001f43de3248d8888ac4a",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -9,8 +9,56 @@
]; ];
policies = { policies = {
"DisplayMenuBar" = true; "DisplayMenuBar" = true;
ExtensionSettings = with builtins;
let
extension = shortId: uuid: {
name = uuid;
value = {
install_url = "https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed";
}; };
profiles.default = import ./firefox-profile.nix // { };
in
listToAttrs [
# Security / Privacy
(extension "ublock-origin" "uBlock0@raymondhill.net")
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
(extension "canvasblocker" "CanvasBlocker@kkapsner.de")
(extension "cookie-autodelete" "CookieAutoDelete@kennydo.com")
(extension "happy-bonobo-disable-webrtc" "jid1-5Fs7iTLscUaZBgwr@jetpack")
(extension "keepassxc-browser" "keepassxc-browser@keepassxc.org")
# Annoyances
(extension "dont-accept-webp" "dont-accept-webp@jeffersonscher.com")
(extension "skip-redirect" "skipredirect@sblask")
(extension "sponsorblock" "sponsorBlocker@ajay.app")
(extension "bandcamp-player-volume-control" "{308ec088-284a-40fe-ae14-7c917526f694}")
# UI / CSS
(extension "darkreader" "addon@darkreader.org")
(extension "rsspreview" "{7799824a-30fe-4c67-8b3e-7094ea203c94}")
(extension "tree-style-tab" "treestyletab@piro.sakura.ne.jp")
(extension "traduzir-paginas-web" "{036a55b4-5e72-4d05-a06c-cba2dfcc134a}")
# Additional Functionality
(extension "betterttv" "firefox@betterttv.net")
(extension "multi-account-containers" "@testpilot-containers")
(extension "gumbo-twitch-companion" "{59a39734-1e66-452e-a7b8-cc79f72062f0}")
(extension "joplin-web-clipper" "{8419486a-54e9-11e8-9401-ac9e17909436}")
(extension "tab-reloader" "jid0-bnmfwWw2w2w4e4edvcdDbnMhdVg@jetpack")
(extension "tab-session-manager" "Tab-Session-Manager@sienori")
(extension "user-agent-string-switcher" "{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}")
(extension "violentmonkey" "{aecec67f-0d10-4fa7-b7c7-609a2db280cf}")
];
# To add additional extensions, find it on addons.mozilla.org, find
# the short ID in the url (like https://addons.mozilla.org/en-US/firefox/addon/!SHORT_ID!/)
# Then, download the XPI by filling it in to the install_url template, unzip it,
# run `jq .browser_specific_settings.gecko.id manifest.json` or
# `jq .applications.gecko.id manifest.json` to get the UUID
};
profiles.default = import
./firefox-profile.nix // {
id = 0; id = 0;
name = "default"; name = "default";
isDefault = true; isDefault = true;

View File

@@ -111,7 +111,6 @@
package = pkgs.brave; package = pkgs.brave;
}; };
# install the shaders from anime4k directory for this to work
mpv = { mpv = {
enable = true; enable = true;
}; };