From 7d12d5d180e4fadb3a030bcc9cfa825e0bfff25a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 4 May 2024 20:48:03 -0400 Subject: [PATCH] vscodium: move to theme module for font declaration --- homeManagerModules/apps/vsCodium/default.nix | 8 +------- homeManagerModules/desktop/theme.nix | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/homeManagerModules/apps/vsCodium/default.nix b/homeManagerModules/apps/vsCodium/default.nix index 6929170e..0745afdd 100644 --- a/homeManagerModules/apps/vsCodium/default.nix +++ b/homeManagerModules/apps/vsCodium/default.nix @@ -11,12 +11,6 @@ config = lib.mkIf config.alyraffauf.apps.vsCodium.enable { alyraffauf.apps.alacritty.enable = lib.mkDefault true; - # Necessary fonts. - home.packages = with pkgs; [ - (nerdfonts.override {fonts = ["Noto"];}) - alejandra - ]; - programs.vscode = { enable = true; package = pkgs.vscodium; @@ -24,7 +18,7 @@ enableExtensionUpdateCheck = false; userSettings = { "diffEditor.ignoreTrimWhitespace" = false; - "editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace"; + "editor.fontFamily" = "'${config.alyraffauf.desktop.theme.terminalFont.name}', 'monospace', monospace"; "explorer.confirmDelete" = false; "files.autoSave" = "afterDelay"; "git.autofetch" = true; diff --git a/homeManagerModules/desktop/theme.nix b/homeManagerModules/desktop/theme.nix index f69060fa..64e854ef 100644 --- a/homeManagerModules/desktop/theme.nix +++ b/homeManagerModules/desktop/theme.nix @@ -76,7 +76,7 @@ alyraffauf.desktop.theme.terminalFont = { name = lib.mkOption { description = "Font name."; - default = "NotoSansMNerdFont-Regular"; + default = "NotoSansMNerdFont"; type = lib.types.str; }; size = lib.mkOption {