From 69098488f6cf1979a4c489cb809b681a13fb7be1 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Sat, 21 Dec 2024 17:15:54 -0500 Subject: [PATCH] Switch to a raw file for fontconfig. --- nix/configuration/configuration.nix | 4 + nix/configuration/roles/fonts/default.nix | 106 +----------------- .../roles/fonts/files/fonts.conf | 99 ++++++++++++++++ 3 files changed, 107 insertions(+), 102 deletions(-) create mode 100644 nix/configuration/roles/fonts/files/fonts.conf diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 5d5d037..f8509f7 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -44,6 +44,10 @@ boot.kernelPackages = pkgs.linuxPackages_6_11; hardware.enableRedistributableFirmware = true; + services.getty = { + autologinUser = "talexander"; # I use full disk encryption so the user password is irrelevant. + autologinOnce = true; + }; users.mutableUsers = false; users.users.talexander = { isNormalUser = true; diff --git a/nix/configuration/roles/fonts/default.nix b/nix/configuration/roles/fonts/default.nix index 6e3e3bb..d47adeb 100644 --- a/nix/configuration/roles/fonts/default.nix +++ b/nix/configuration/roles/fonts/default.nix @@ -9,115 +9,17 @@ imports = [ ]; fonts = { - enableDefaultPackages = true; + enableDefaultPackages = false; packages = with pkgs; [ cascadia-code source-sans-pro source-serif-pro + noto-fonts-color-emoji ]; fontconfig = { - localConf = '' - - - - - - - - - - - - - false - - - - - /usr/share/fonts/gsfonts/* - - - - - - serif - - Source Serif Pro - Source Sans Pro - - - - - - sans-serif - - Source Sans Pro - Source Serif Pro - - - - - - monospace - - Cascadia Mono - Cascadia Code - - - - - - - Liberation Mono - Cascadia Mono - - - - - monospace - Cascadia Mono - - - - - - Cascadia Code - - - liga off - dlig off - - - - - - - rgb - - - - - true - - - - - hintslight - - - - - true - - - - - lcddefault - - - - ''; + localConf = (builtins.readFile ./files/fonts.conf); + useEmbeddedBitmaps = true; }; }; } diff --git a/nix/configuration/roles/fonts/files/fonts.conf b/nix/configuration/roles/fonts/files/fonts.conf new file mode 100644 index 0000000..ddfb4e9 --- /dev/null +++ b/nix/configuration/roles/fonts/files/fonts.conf @@ -0,0 +1,99 @@ + + + + + + + + + + + + + false + + + + + /usr/share/fonts/gsfonts/* + + + + + + serif + + Source Serif Pro + Source Sans Pro + + + + + + sans-serif + + Source Sans Pro + Source Serif Pro + + + + + + monospace + + Cascadia Mono + Cascadia Code + + + + + + + Liberation Mono + Cascadia Mono + + + + + monospace + Cascadia Mono + + + + + + Cascadia Code + + + liga off + dlig off + + + + + + + rgb + + + + + true + + + + + hintslight + + + + + true + + + + + lcddefault + + +