mirror of
https://github.com/Nexoniarz/nexoniarz-config-nixos-laptop.git
synced 2026-11-04 04:54:28 +00:00
Bring over the PC config's changes: NexoPass, AppImages, Firefox privacy
- nexopass and nexopass-gui (scripts.nix, with the wordlist and icon) - AppImages run directly through appimage-run's binfmt (apps.nix) - Firefox: full fingerprinting protection except forced light mode, Accept-Language en-US, and its own font list without corefonts - README updated to match Left out as PC-only: OpenRGB, acpi_enforce_resources=lax, the Vega 8/RTX 3060 Ti graphics setup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
863abb4fd3
commit
bc190454b6
8 changed files with 9270 additions and 7 deletions
|
|
@ -1,8 +1,33 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let
|
||||
# Firefox's own font setup: every system font except the Microsoft core
|
||||
# fonts. Sites measure which fonts are installed to fingerprint you, and
|
||||
# Comic Sans, Impact, Georgia, Verdana... made that list 1 in 9,000.
|
||||
# Only Firefox is affected: other apps still have corefonts. In Firefox,
|
||||
# Arial, Times New Roman and Courier New render as Liberation (same
|
||||
# letter widths), the rest fall back to Noto.
|
||||
firefoxFonts = pkgs.writeText "firefox-fonts.conf" ''
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
|
||||
<fontconfig>
|
||||
<include ignore_missing="no">/etc/fonts/fonts.conf</include>
|
||||
<selectfont>
|
||||
<rejectfont>
|
||||
<glob>${pkgs.corefonts}/*</glob>
|
||||
</rejectfont>
|
||||
</selectfont>
|
||||
</fontconfig>
|
||||
'';
|
||||
in
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# The wrapper sets FONTCONFIG_FILE when Firefox starts. (overrideAttrs
|
||||
# keeps the package overridable, so the autoConfig below still applies.)
|
||||
package = pkgs.firefox.overrideAttrs (old: {
|
||||
makeWrapperArgs = old.makeWrapperArgs ++ [ "--set" "FONTCONFIG_FILE" "${firefoxFonts}" ];
|
||||
});
|
||||
# Not locked: values are reapplied on every Firefox start, but can be
|
||||
# changed in the UI for the current session. (Read as text: the module
|
||||
# doesn't copy autoConfigFiles paths into the store.)
|
||||
|
|
|
|||
Loading…
Reference in a new issue