vscodium: move to theme module for font declaration

This commit is contained in:
Aly Raffauf 2024-05-04 20:48:03 -04:00
parent cc10649a87
commit 7d12d5d180
2 changed files with 2 additions and 8 deletions

View file

@ -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;

View file

@ -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 {