From df2a9093ad12a999f9aca6ec380e8cfc21c88986 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Fri, 29 Mar 2024 07:21:25 -0400 Subject: [PATCH] home: added vscodium by default --- homeManagerModules/guiApps/default.nix | 12 ++++- homeManagerModules/guiApps/vsCode/default.nix | 46 +++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 homeManagerModules/guiApps/vsCode/default.nix diff --git a/homeManagerModules/guiApps/default.nix b/homeManagerModules/guiApps/default.nix index 92ffde86..365a7ee6 100644 --- a/homeManagerModules/guiApps/default.nix +++ b/homeManagerModules/guiApps/default.nix @@ -1,8 +1,18 @@ { config, lib, pkgs, ... }: { - imports = [ ./alacritty ./chromium ./firefox ./fuzzel ./librewolf ./mako ./waybar ]; + imports = [ + ./alacritty + ./chromium + ./firefox + ./fuzzel + ./librewolf + ./mako + ./vsCode + ./waybar + ]; guiApps.firefox.enable = lib.mkDefault true; guiApps.alacritty.enable = lib.mkDefault true; + guiApps.vsCode.enable = lib.mkDefault true; } diff --git a/homeManagerModules/guiApps/vsCode/default.nix b/homeManagerModules/guiApps/vsCode/default.nix new file mode 100644 index 00000000..7f653163 --- /dev/null +++ b/homeManagerModules/guiApps/vsCode/default.nix @@ -0,0 +1,46 @@ +{ pkgs, lib, config, ... }: { + + options = { guiApps.vsCode.enable = lib.mkEnableOption "Enables VSCodium."; }; + + config = lib.mkIf config.guiApps.vsCode.enable { + + # Necessary fonts. + home.packages = with pkgs; [ + pkgs.nerdfonts.override { fonts = [ "Noto" ]; }; + ]; + + programs.vscode = { + enable = true; + package = pkgs.vscodium; + enableUpdateCheck = false; + userSettings = { + "update.mode" = "none"; + "workbench.colorTheme" = "Catppuccin Macchiato"; + "workbench.preferredDarkColorTheme" = "Catppuccin Macchiato"; + "git.autofetch" = true; + "git.confirmSync" = false; + "files.autoSave" = "afterDelay"; + "workbench.preferredLightColorTheme" = "Catppuccin Latte"; + "window.zoomPerWindow" = false; + "explorer.confirmDelete" = false; + "workbench.iconTheme" = "catppuccin-macchiato"; + "editor.fontFamily" = + "'NotoSansM Nerd Font', 'monospace', monospace"; + "window.menuBarVisibility" = "hidden"; + "diffEditor.ignoreTrimWhitespace" = false; + }; + + extensions = with pkgs; [ + vscode-extensions.catppuccin.catppuccin-vsc + vscode-extensions.catppuccin.catppuccin-vsc-icons + vscode-extensions.github.vscode-github-actions + vscode-extensions.github.vscode-pull-request-github + vscode-extensions.ms-python.python + vscode-extensions.ms-vscode.cpptools-extension-pack + vscode-extensions.rubymaniac.vscode-paste-and-indent + vscode-extensions.rust-lang.rust-analyzer + vscode-extensions.tomoki1207.pdf + ]; + }; + }; +}