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 { config = lib.mkIf config.alyraffauf.apps.vsCodium.enable {
alyraffauf.apps.alacritty.enable = lib.mkDefault true; alyraffauf.apps.alacritty.enable = lib.mkDefault true;
# Necessary fonts.
home.packages = with pkgs; [
(nerdfonts.override {fonts = ["Noto"];})
alejandra
];
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.vscodium; package = pkgs.vscodium;
@ -24,7 +18,7 @@
enableExtensionUpdateCheck = false; enableExtensionUpdateCheck = false;
userSettings = { userSettings = {
"diffEditor.ignoreTrimWhitespace" = false; "diffEditor.ignoreTrimWhitespace" = false;
"editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace"; "editor.fontFamily" = "'${config.alyraffauf.desktop.theme.terminalFont.name}', 'monospace', monospace";
"explorer.confirmDelete" = false; "explorer.confirmDelete" = false;
"files.autoSave" = "afterDelay"; "files.autoSave" = "afterDelay";
"git.autofetch" = true; "git.autofetch" = true;

View file

@ -76,7 +76,7 @@
alyraffauf.desktop.theme.terminalFont = { alyraffauf.desktop.theme.terminalFont = {
name = lib.mkOption { name = lib.mkOption {
description = "Font name."; description = "Font name.";
default = "NotoSansMNerdFont-Regular"; default = "NotoSansMNerdFont";
type = lib.types.str; type = lib.types.str;
}; };
size = lib.mkOption { size = lib.mkOption {