mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 04:51:55 -05:00
vsCodium: migrate to font modules
This commit is contained in:
parent
f53400790a
commit
ee5e1e2519
|
@ -3,8 +3,10 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf config.ar.home.apps.vsCodium.enable {
|
||||
}: let
|
||||
cfg = config.ar.home;
|
||||
in {
|
||||
config = lib.mkIf cfg.apps.vsCodium.enable {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
|
@ -32,7 +34,7 @@
|
|||
|
||||
userSettings = {
|
||||
"diffEditor.ignoreTrimWhitespace" = false;
|
||||
"editor.fontFamily" = "'UbuntuSansMono Nerd Font', 'monospace', monospace";
|
||||
"editor.fontFamily" = "'${cfg.theme.monospaceFont.name} ${cfg.theme.monospaceFont.size}', 'monospace', monospace";
|
||||
"editor.fontSize" = lib.mkDefault 14;
|
||||
"editor.formatOnPaste" = true;
|
||||
"editor.formatOnSave" = true;
|
||||
|
@ -75,14 +77,14 @@
|
|||
|
||||
"shellformat.flag" = "-i 4";
|
||||
|
||||
"terminal.external.linuxExec" = lib.getExe config.ar.home.defaultApps.terminal;
|
||||
"terminal.external.linuxExec" = lib.getExe cfg.defaultApps.terminal;
|
||||
"terminal.integrated.fontSize" = lib.mkDefault 14;
|
||||
"update.mode" = "none";
|
||||
"window.menuBarVisibility" = "hidden";
|
||||
"window.titleBarStyle" = lib.mkDefault "native";
|
||||
"window.zoomPerWindow" = false;
|
||||
"workbench.colorTheme" =
|
||||
if config.ar.home.theme.darkMode
|
||||
if cfg.theme.darkMode
|
||||
then "Adwaita Dark"
|
||||
else "Adwaita Light";
|
||||
"workbench.iconTheme" = "vs-seti";
|
||||
|
|
Loading…
Reference in a new issue