nixfiles/home/programming/editors/vscode.nix
2022-11-11 16:32:26 +00:00

24 lines
840 B
Nix

{ config, nixosConfig, pkgs, ... }:
let
font-size = if nixosConfig.networking.hostName == "tablet" then 18 else 24;
zoom-level = if nixosConfig.networking.hostName == "tablet" then -2 else 0;
in {
programs.vscode-mod = {
enable = true;
userSettings = {
"terminal.integrated.shellIntegration.enabled" = false;
"github.gitAuthentication" = false;
"editor.fontSize" = font-size;
"editor.fontFamily" = "'Comic Code'";
"terminal.integrated.fontSize" = font-size;
"editor.codeLensFontFamily" = "'Comic Code'";
"editor.inlayHints.fontFamily" = "'Comic Code'";
"markdown.preview.fontFamily" = "'Comic Code'";
"terminal.integrated.fontFamily" = "'Comic Code'";
"files.autoSave" = "afterDelay";
"window.zoomLevel" = zoom-level;
"editor.tabSize" = 2;
};
};
}