98 lines
2.9 KiB
Nix
98 lines
2.9 KiB
Nix
{ pkgs, ... }:
|
|
let
|
|
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/master.tar.gz";
|
|
arkenfox = builtins.fetchTarball "https://github.com/arkenfox/user.js/archive/master.tar.gz";
|
|
in
|
|
{
|
|
imports =
|
|
[ # Include the results of the hardware scan.
|
|
(import "${home-manager}/nixos")
|
|
];
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
|
|
inherit pkgs;
|
|
};
|
|
};
|
|
home-manager.users.ark.home.file.".mozilla/managed-storage/uBlock0@raymondhill.net.json".text =
|
|
builtins.toJSON {
|
|
name = "uBlock0@raymondhill.net";
|
|
description = "_";
|
|
type = "storage";
|
|
data = {
|
|
adminSettings = {
|
|
userFilters = ''
|
|
www.youtube.com###cinematics > div > canvas
|
|
'';
|
|
};
|
|
userSettings = [
|
|
[ "advancedUserEnabled" "true" ]
|
|
[ "autoUpdate" "true" ]
|
|
[ "colorBlindFriendly" "true" ]
|
|
[ "contextMenuEnabled" "true" ]
|
|
[ "dynamicFilteringEnabled" "false" ]
|
|
];
|
|
toOverwrite = {
|
|
filterLists = [
|
|
"user-filters"
|
|
"ublock-filters"
|
|
"ublock-badware"
|
|
"ublock-privacy"
|
|
"ublock-quick-fixes"
|
|
"ublock-abuse"
|
|
"ublock-unbreak"
|
|
"easylist"
|
|
"easyprivacy"
|
|
"urlhaus-1"
|
|
"plowe-0"
|
|
"adguard-cookiemonster"
|
|
"ublock-cookies-adguard"
|
|
"fanboy-cookiemonster"
|
|
"ublock-cookies-easylist"
|
|
"https://raw.githubusercontent.com/liamengland1/miscfilters/master/antipaywall.txt"
|
|
"https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters/-/raw/main/bpc-paywall-filter.txt"
|
|
"https://raw.githubusercontent.com/gijsdev/ublock-hide-yt-shorts/master/list.txt"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
home-manager.users.ark.programs.firefox = {
|
|
enable = true;
|
|
profiles.default = {
|
|
id = 0;
|
|
name = "default";
|
|
isDefault = true;
|
|
search.force = true;
|
|
search.default = "LibRedirect";
|
|
search.privateDefault = "LibRedirect";
|
|
settings = {
|
|
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
|
"browser.toolbars.bookmarks.visibility" = "never";
|
|
"signon.rememberSignons" = false;
|
|
};
|
|
# containers = {
|
|
# "school" = {
|
|
# id = 0;
|
|
# color = "red";
|
|
# icon = "fruit";
|
|
# };
|
|
# "work" = {
|
|
# id = 1;
|
|
# color = "orange";
|
|
# icon = "briefcase";
|
|
# };
|
|
# };
|
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
|
ublock-origin
|
|
bitwarden
|
|
libredirect
|
|
sidebery
|
|
stylus
|
|
firefox-color
|
|
tabliss
|
|
];
|
|
userChrome = builtins.readFile ./userChrome.css;
|
|
extraConfig = builtins.readFile "${arkenfox}/user.js";
|
|
};
|
|
};
|
|
}
|