From 20c1c46d1262baea248b06df96b26fe88746e865 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Fri, 20 Dec 2024 16:07:12 -0500 Subject: [PATCH] Set up fonts. --- nix/configuration/configuration.nix | 7 +- nix/configuration/roles/blank/default.nix | 7 ++ nix/configuration/roles/fonts/default.nix | 118 ++++++++++++++++++++++ 3 files changed, 129 insertions(+), 3 deletions(-) create mode 100644 nix/configuration/roles/blank/default.nix create mode 100644 nix/configuration/roles/fonts/default.nix diff --git a/nix/configuration/configuration.nix b/nix/configuration/configuration.nix index 760026e..31cff64 100644 --- a/nix/configuration/configuration.nix +++ b/nix/configuration/configuration.nix @@ -12,6 +12,7 @@ ./roles/sway ./roles/emacs ./roles/git + ./roles/fonts ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -79,9 +80,9 @@ file usbutils # for lsusb pciutils # for lspci - mesa-demos # for glxgears - vulkan-tools # for vkcube - xorg.xeyes # to test which windows are using x11 + mesa-demos # for glxgears TODO move to better role + vulkan-tools # for vkcube TODO move to better role + xorg.xeyes # to test which windows are using x11 TODO move to better role ]; services.openssh = { diff --git a/nix/configuration/roles/blank/default.nix b/nix/configuration/roles/blank/default.nix new file mode 100644 index 0000000..108e102 --- /dev/null +++ b/nix/configuration/roles/blank/default.nix @@ -0,0 +1,7 @@ +{ config, lib, pkgs, ... }: + +{ + imports = []; + + +} diff --git a/nix/configuration/roles/fonts/default.nix b/nix/configuration/roles/fonts/default.nix new file mode 100644 index 0000000..9808e45 --- /dev/null +++ b/nix/configuration/roles/fonts/default.nix @@ -0,0 +1,118 @@ +{ config, lib, pkgs, ... }: + +{ + imports = []; + + fonts = { + enableDefaultPackages = true; + packages = with pkgs; [ + cascadia-code + source-sans-pro + source-serif-pro + ]; + + 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 + + + + ''; + }; + }; +}