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