vscode: Set editor and terminal font (#93)

This commit is contained in:
Lyndon Sanche 2023-04-27 05:57:24 -06:00 committed by GitHub
parent 906574cb37
commit bd1b970115
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}'";
};
};
};
}