flake/modules/home/desktop/development.nix
2024-09-01 11:21:55 +00:00

43 lines
1.6 KiB
Nix

{ pkgs, lib, config, ... }: {
options.mods.desktop.development.enable =
lib.mkEnableOption "enables gui development tools";
config = lib.mkIf config.mods.desktop.development.enable {
# home.packages = with pkgs; [];
programs.qutebrowser = {
enable = true;
settings = {
content.cookies.accept = "no-3rdparty";
url = {
default_page = "https://planet.gnu.org/";
start_pages = "https://planet.gnu.org/";
};
};
searchEngines = {
DEFAULT = "https://searx.be/?q={}";
np = "https://search.nixos.org/packages?query={}";
no = "https://search.nixos.org/options?query={}";
};
extraConfig = ''
host = c.content.blocking.hosts.lists.append
host("https://www.github.developerdan.com/hosts/lists/facebook-extended.txt")
abp = c.content.blocking.adblock.lists.append
abp("https://fanboy.co.nz/r/fanboy-ultimate.txt")
abp("https://fanboy.co.nz/fanboy-antifacebook.txt")
abp("https://fanboy.co.nz/fanboy-annoyance.txt")
abp("https://fanboy.co.nz/fanboy-cookiemonster.txt")
abp("https://easylist-downloads.adblockplus.org/antiadblockfilters.txt")
abp("https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/LegitimateURLShortener.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/AnnoyancesList")
abp("https://github.com/DandelionSprout/adfilt/raw/master/SocialShareList.txt")
abp("https://github.com/DandelionSprout/adfilt/raw/master/ExtremelyCondensedList.txt")
'';
};
};
}