new site-config.nix holds values previously duplicated across hosts:
domain, old_domain, contact_email, timezone, binary_cache (url + pubkey),
dns_servers, lan (cidr + gateway), hosts.{muffin,yarn} (ip/alias/ssh_host_key),
ssh_keys.{laptop,desktop,ci_deploy}.
threaded through specialArgs on all three hosts + home-manager extraSpecialArgs +
homeConfigurations.primary + serverLib. service-configs.nix now takes
{ site_config } as a function arg and drops its https namespace; per-service
domains (gitea/matrix/ntfy/mollysocket/livekit/firefox-sync/grafana) are
derived from site_config.domain. ~15 service files and 6 vm tests migrated.
breakage fixes rolled in:
- home/progs/zen/dark-reader.nix: 5 stale *.gardling.com entries in
disabledFor rewritten to *.sigkill.computer (caddy 301s the old names so
these never fired and the new sigkill urls were getting dark-reader applied)
- modules/desktop-common.nix: drop unused hugepagesz=1G/hugepages=3
kernelParams (no consumer on mreow or yarn; xmrig on muffin still reserves
its own via services/monero/xmrig.nix)
verification: muffin toplevel is bit-identical to pre-refactor baseline.
mreow/yarn toplevels differ only in boot.json kernelParams + darkreader
storage.js (nix-diff verified). deployGuardTest and fail2banVaultwardenTest
(latter exercises site_config.domain via bitwarden.nix) pass.
165 lines
3.7 KiB
Nix
165 lines
3.7 KiB
Nix
# Dark Reader extension settings
|
|
# Addon ID: addon@darkreader.org
|
|
{ lib }:
|
|
let
|
|
defaultTheme = {
|
|
mode = 1;
|
|
brightness = 100;
|
|
contrast = 100;
|
|
grayscale = 0;
|
|
sepia = 0;
|
|
useFont = false;
|
|
fontFamily = "Open Sans";
|
|
textStroke = 0;
|
|
engine = "dynamicTheme";
|
|
stylesheet = "";
|
|
darkSchemeBackgroundColor = "#181a1b";
|
|
darkSchemeTextColor = "#e8e6e3";
|
|
lightSchemeBackgroundColor = "#dcdad7";
|
|
lightSchemeTextColor = "#181a1b";
|
|
scrollbarColor = "";
|
|
selectionColor = "auto";
|
|
styleSystemControls = false;
|
|
lightColorScheme = "Default";
|
|
darkColorScheme = "Default";
|
|
immediateModify = false;
|
|
};
|
|
|
|
mkCustomTheme =
|
|
{
|
|
url,
|
|
engine ? defaultTheme.engine,
|
|
builtIn ? false,
|
|
}:
|
|
{
|
|
inherit url;
|
|
theme = defaultTheme // {
|
|
inherit engine;
|
|
};
|
|
}
|
|
// lib.optionalAttrs builtIn { inherit builtIn; };
|
|
in
|
|
{
|
|
force = true;
|
|
settings = {
|
|
enabled = true;
|
|
fetchNews = true;
|
|
syncSettings = false;
|
|
syncSitesFixes = false;
|
|
changeBrowserTheme = false;
|
|
enabledByDefault = false;
|
|
enableForPDF = true;
|
|
enableForProtectedPages = false;
|
|
enableContextMenus = false;
|
|
detectDarkTheme = true;
|
|
previewNewDesign = false;
|
|
previewNewestDesign = false;
|
|
|
|
theme = defaultTheme;
|
|
|
|
enabledFor = [
|
|
"search.nixos.org"
|
|
"quizlet.com"
|
|
"claude.ai"
|
|
];
|
|
|
|
disabledFor = [
|
|
"cinny.envs.net"
|
|
"element.envs.net"
|
|
"mail.proton.me"
|
|
"mail.google.com"
|
|
"www.sigkill.computer"
|
|
"projects.fivethirtyeight.com"
|
|
"secure.bankofamerica.com"
|
|
"billpay-ui.bankofamerica.com"
|
|
"plus.pearson.com"
|
|
"immich.sigkill.computer"
|
|
"huggingface.co"
|
|
"session.masteringphysics.com"
|
|
"brainly.com"
|
|
"www.270towin.com"
|
|
"phet.colorado.edu"
|
|
"8042-1.portal.athenahealth.com"
|
|
"torrent.sigkill.computer"
|
|
"nssb-p.adm.fit.edu"
|
|
"mail.openbenchmarking.org"
|
|
"moneroocean.stream"
|
|
"app.diagrams.net"
|
|
"books.gw-project.org"
|
|
"chat.deepseek.com"
|
|
"n21.ultipro.com"
|
|
"www.egaroucid.nyanyan.dev"
|
|
"bitmagnet.sigkill.computer"
|
|
"frame.work"
|
|
"www.altcancer.net"
|
|
"jenkins.jpenilla.xyz"
|
|
"soulseek.sigkill.computer"
|
|
"discord.com"
|
|
"www.lufthansa.com"
|
|
"surveys.hyundaicx.com"
|
|
"www.apple.com"
|
|
"docs.google.com"
|
|
"marcuspork.com"
|
|
"en.akinator.com"
|
|
"www.reddit.com"
|
|
"terra.layoutit.com"
|
|
"www.ebay.com"
|
|
"www.nytimes.com"
|
|
"app.electricitymaps.com"
|
|
"www.revoy.com"
|
|
"kagi.com"
|
|
"www.bhphotovideo.com"
|
|
"survey.stackoverflow.co"
|
|
"www.google.com"
|
|
"en.wikipedia.org"
|
|
"workforcenow.adp.com"
|
|
"app.element.io"
|
|
"www.desmos.com"
|
|
"en.wiktionary.org"
|
|
"dariandean0.github.io"
|
|
];
|
|
|
|
customThemes = [
|
|
(mkCustomTheme {
|
|
url = [ "*.officeapps.live.com" ];
|
|
engine = "cssFilter";
|
|
builtIn = true;
|
|
})
|
|
(mkCustomTheme {
|
|
url = [ "*.sharepoint.com" ];
|
|
engine = "cssFilter";
|
|
builtIn = true;
|
|
})
|
|
(mkCustomTheme {
|
|
url = [ "docs.google.com" ];
|
|
engine = "cssFilter";
|
|
builtIn = true;
|
|
})
|
|
(mkCustomTheme {
|
|
url = [ "onedrive.live.com" ];
|
|
engine = "cssFilter";
|
|
builtIn = true;
|
|
})
|
|
(mkCustomTheme {
|
|
url = [ "huggingface.co" ];
|
|
engine = "svgFilter";
|
|
})
|
|
(mkCustomTheme {
|
|
url = [ "www.last.fm" ];
|
|
engine = "svgFilter";
|
|
})
|
|
];
|
|
|
|
automation = {
|
|
enabled = false;
|
|
mode = "";
|
|
behavior = "OnOff";
|
|
};
|
|
|
|
time = {
|
|
activation = "18:00";
|
|
deactivation = "9:00";
|
|
};
|
|
};
|
|
}
|