home(gui): cleaner defaults

This commit is contained in:
514fpv 2024-05-13 08:38:38 +08:00
parent 3aa1712dd5
commit 230eba7335
Signed by: koishi
SSH key fingerprint: SHA256:2jRvFSzG5UeUlQ3WxZ2sbUOfo5wNKzv1fZsk/FexKjQ
2 changed files with 12 additions and 11 deletions

View file

@ -3,6 +3,7 @@
, config
, ... }: with lib; let
cfg = config.passthrough.vscode;
theme = config.passthrough.catppuccin.enable;
in mkIf cfg.enable {
programs.vscode = {
enable = true;
@ -15,8 +16,8 @@ in mkIf cfg.enable {
bbenoist.nix golang.go rust-lang.rust-analyzer
];
userSettings = {
"workbench.colorTheme" = "Catppuccin Frappé";
"workbench.iconTheme" = "catppuccin-frappe";
"workbench.colorTheme" = mkIf theme "Catppuccin Frappé";
"workbench.iconTheme" = mkIf theme "catppuccin-frappe";
"[nix]"."editor.tabSize" = 2;
};
};