From 27b3fe91a631b9585c4f8d158fcd36e075600adf Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sun, 4 Aug 2024 15:28:58 -0400 Subject: [PATCH] nixos: fix zed font troubles with explicit fonts in desktop module --- flake.lock | 6 +++--- homeManagerModules/theme.nix | 2 ++ nixosModules/desktop/default.nix | 2 ++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index cc8168f1..f87dc451 100644 --- a/flake.lock +++ b/flake.lock @@ -166,11 +166,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1722421184, - "narHash": "sha256-/DJBI6trCeVnasdjUo9pbnodCLZcFqnVZiLUfqLH4jA=", + "lastModified": 1722630782, + "narHash": "sha256-hMyG9/WlUi0Ho9VkRrrez7SeNlDzLxalm9FwY7n/Noo=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9f918d616c5321ad374ae6cb5ea89c9e04bf3e58", + "rev": "d04953086551086b44b6f3c6b7eeb26294f207da", "type": "github" }, "original": { diff --git a/homeManagerModules/theme.nix b/homeManagerModules/theme.nix index 94853bf1..94926fe3 100644 --- a/homeManagerModules/theme.nix +++ b/homeManagerModules/theme.nix @@ -13,6 +13,7 @@ in { gnome.adwaita-icon-theme liberation_ttf vegur + (nerdfonts.override {fonts = ["UbuntuSans"];}) ]; pointerCursor = { @@ -30,6 +31,7 @@ in { fonts.fontconfig = { enable = true; + defaultFonts = { monospace = ["UbuntuSansMono Nerd Font"]; serif = ["Vegur"]; diff --git a/nixosModules/desktop/default.nix b/nixosModules/desktop/default.nix index cd605dc3..36bda86a 100644 --- a/nixosModules/desktop/default.nix +++ b/nixosModules/desktop/default.nix @@ -22,7 +22,9 @@ }; fonts.packages = with pkgs; [ + (nerdfonts.override {fonts = ["UbuntuSans"];}) liberation_ttf + vegur ]; hardware.logitech.wireless = {