Add Spotify search to Librewolf, remove redundant Grub device option, first attempt at DNS adblocking
This commit is contained in:
parent
a5b7d5abd4
commit
7577113cf9
7 changed files with 75 additions and 57 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
blocky.enable = true;
|
||||||
cloudflare-dyndns.enable = true;
|
cloudflare-dyndns.enable = true;
|
||||||
forgejo.enable = true;
|
forgejo.enable = true;
|
||||||
icecast.enable = true;
|
icecast.enable = true;
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
{
|
{
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
kernelPackages = pkgs.linuxPackages_latest;
|
||||||
loader.grub = {
|
loader.grub.enable = true;
|
||||||
enable = true;
|
|
||||||
device = lib.mkForce "/dev/vda";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,25 +52,21 @@
|
||||||
"NixPKGs"
|
"NixPKGs"
|
||||||
"MyNixOS"
|
"MyNixOS"
|
||||||
"YouTube"
|
"YouTube"
|
||||||
|
"Spotify"
|
||||||
];
|
];
|
||||||
engines = {
|
engines = {
|
||||||
"Ecosia" = {
|
"Ecosia" = {
|
||||||
urls = [
|
urls = [{
|
||||||
{
|
|
||||||
template = "https://www.ecosia.org/search";
|
template = "https://www.ecosia.org/search";
|
||||||
params = [
|
params = [{
|
||||||
{
|
|
||||||
name = "q";
|
name = "q";
|
||||||
value = "{searchTerms}";
|
value = "{searchTerms}";
|
||||||
}
|
}];
|
||||||
];
|
}];
|
||||||
}
|
|
||||||
];
|
|
||||||
definedAliases = [ "@e" ];
|
definedAliases = [ "@e" ];
|
||||||
};
|
};
|
||||||
"NixPKGs" = {
|
"NixPKGs" = {
|
||||||
urls = [
|
urls = [{
|
||||||
{
|
|
||||||
template = "https://search.nixos.org/packages";
|
template = "https://search.nixos.org/packages";
|
||||||
params = [
|
params = [
|
||||||
{
|
{
|
||||||
|
@ -82,38 +78,33 @@
|
||||||
value = "{searchTerms}";
|
value = "{searchTerms}";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}];
|
||||||
];
|
definedAliases = [ "@pkgs" ];
|
||||||
definedAliases = [ "@p" ];
|
|
||||||
};
|
};
|
||||||
"MyNixOS" = {
|
"MyNixOS" = {
|
||||||
urls = [
|
urls = [{
|
||||||
{
|
|
||||||
template = "https://mynixos.com/search";
|
template = "https://mynixos.com/search";
|
||||||
params = [
|
params = [{
|
||||||
{
|
|
||||||
name = "q";
|
name = "q";
|
||||||
value = "{searchTerms}";
|
value = "{searchTerms}";
|
||||||
}
|
}];
|
||||||
];
|
}];
|
||||||
}
|
|
||||||
];
|
|
||||||
definedAliases = [ "@my" ];
|
definedAliases = [ "@my" ];
|
||||||
};
|
};
|
||||||
"YouTube" = {
|
"YouTube" = {
|
||||||
urls = [
|
urls = [{
|
||||||
{
|
|
||||||
template = "https://www.youtube.com/results";
|
template = "https://www.youtube.com/results";
|
||||||
params = [
|
params = [{
|
||||||
{
|
|
||||||
name = "search_query";
|
name = "search_query";
|
||||||
value = "{searchTerms}";
|
value = "{searchTerms}";
|
||||||
}
|
}];
|
||||||
];
|
}];
|
||||||
}
|
|
||||||
];
|
|
||||||
definedAliases = [ "@y" ];
|
definedAliases = [ "@y" ];
|
||||||
};
|
};
|
||||||
|
"Spotify" = {
|
||||||
|
urls = [{ template = "https://open.spotify.com/search/{searchTerms}"; }];
|
||||||
|
definedAliases = [ "@s" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
commonBookmarks = [
|
commonBookmarks = [
|
||||||
|
@ -192,7 +183,6 @@
|
||||||
"privacy.resistFingerprinting" = true;
|
"privacy.resistFingerprinting" = true;
|
||||||
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
|
"privacy.resistFingerprinting.autoDeclineNoUserInputCanvasPrompts" = true;
|
||||||
"privacy.fingerprintingProtection" = true;
|
"privacy.fingerprintingProtection" = true;
|
||||||
"privacy.donottrackheader.enabled" = true;
|
|
||||||
"privacy.globalprivacycontrol.enabled" = true;
|
"privacy.globalprivacycontrol.enabled" = true;
|
||||||
"privacy.globalprivacycontrol.functionality.enabled" = true;
|
"privacy.globalprivacycontrol.functionality.enabled" = true;
|
||||||
"privacy.clearOnShutdown.cookies" = false;
|
"privacy.clearOnShutdown.cookies" = false;
|
||||||
|
@ -256,6 +246,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Symlinks to Librewolf
|
# Symlinks to Librewolf
|
||||||
home.file.".librewolf".source = config.lib.file.mkOutOfStoreSymlink "/home/${config.home.username}/.mozilla/firefox";
|
home.file.".librewolf".source = config.lib.file.mkOutOfStoreSymlink "/home/${config.home.username}/.mozilla/firefox";
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,6 +3,5 @@
|
||||||
boot.loader.grub = {
|
boot.loader.grub = {
|
||||||
efiSupport = true;
|
efiSupport = true;
|
||||||
efiInstallAsRemovable = true;
|
efiInstallAsRemovable = true;
|
||||||
device = "nodev";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,10 +8,10 @@
|
||||||
nftables.enable = true;
|
nftables.enable = true;
|
||||||
firewall.allowPing = false;
|
firewall.allowPing = false;
|
||||||
nameservers = [
|
nameservers = [
|
||||||
"9.9.9.11#dns11.quad9.net"
|
|
||||||
"149.112.112.11#dns11.quad9.net"
|
|
||||||
"2620:fe::11#dns11.quad9.net"
|
"2620:fe::11#dns11.quad9.net"
|
||||||
"2620:fe::fe:11#dns11.quad9.net"
|
"2620:fe::fe:11#dns11.quad9.net"
|
||||||
|
"9.9.9.11#dns11.quad9.net"
|
||||||
|
"149.112.112.11#dns11.quad9.net"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
29
modules/system/services/server/blocky/default.nix
Normal file
29
modules/system/services/server/blocky/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
services.blocky = {
|
||||||
|
settings = {
|
||||||
|
upstreams.groups.default = [
|
||||||
|
"2606:4700:4700::1111"
|
||||||
|
"2606:4700:4700::1001"
|
||||||
|
"1.1.1.1"
|
||||||
|
"1.0.0.1"
|
||||||
|
];
|
||||||
|
|
||||||
|
blocking = {
|
||||||
|
clientGroupsBlock.default = [
|
||||||
|
"pro"
|
||||||
|
"tif"
|
||||||
|
];
|
||||||
|
denylists = {
|
||||||
|
"pro" = [ "https://codeberg.org/hagezi/mirror2/raw/branch/main/dns-blocklists/wildcard/pro.txt" ];
|
||||||
|
"tif" = [ "https://codeberg.org/hagezi/mirror2/raw/branch/main/dns-blocklists/wildcard/tif.txt" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
caching = {
|
||||||
|
prefetching = true;
|
||||||
|
minTime = "1m";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,6 +1,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./blocky
|
||||||
./cfdyndns
|
./cfdyndns
|
||||||
./forgejo
|
./forgejo
|
||||||
./icecast
|
./icecast
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue