From bd1b9701155e5d46c057971f8f15db0aa604bc72 Mon Sep 17 00:00:00 2001 From: Lyndon Sanche Date: Thu, 27 Apr 2023 05:57:24 -0600 Subject: [PATCH] vscode: Set editor and terminal font (#93) --- modules/vscode/hm.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/vscode/hm.nix b/modules/vscode/hm.nix index ea00aad3..4be40325 100644 --- a/modules/vscode/hm.nix +++ b/modules/vscode/hm.nix @@ -1,5 +1,7 @@ {pkgs, config, lib, ... }: +with config.stylix.fonts; + let themeFile = config.lib.stylix.colors { template = builtins.readFile ./template.mustache; @@ -23,7 +25,11 @@ in { config = lib.mkIf config.stylix.targets.vscode.enable { programs.vscode = { extensions = [ themeExtension ]; - userSettings."workbench.colorTheme" = "Stylix"; + userSettings = { + workbench.colorTheme = "Stylix"; + terminal.integrated.fontFamily = "'${monospace.name}'"; + editor.fontFamily = "'${monospace.name}'"; + }; }; }; }