nixcfg/homeManagerModules/apps/vsCodium/default.nix

60 lines
2.2 KiB
Nix
Raw Normal View History

{
pkgs,
lib,
config,
...
}: {
2024-03-29 07:31:00 -04:00
options = {
alyraffauf.apps.vsCodium.enable = lib.mkEnableOption "Enables VSCodium.";
2024-03-29 07:31:00 -04:00
};
2024-03-29 07:21:25 -04:00
config = lib.mkIf config.alyraffauf.apps.vsCodium.enable {
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
2024-03-29 07:21:25 -04:00
programs.vscode = {
enable = true;
package = pkgs.vscodium.override {commandLineArgs = "--gtk-version=4 --enable-wayland-ime";};
2024-03-29 07:21:25 -04:00
enableUpdateCheck = false;
enableExtensionUpdateCheck = false;
2024-03-29 07:21:25 -04:00
userSettings = {
"diffEditor.ignoreTrimWhitespace" = false;
2024-05-05 17:27:29 -04:00
"editor.fontFamily" = "'NotoSansM Nerd Font','${config.alyraffauf.desktop.theme.terminalFont.name}', 'monospace', monospace";
"explorer.confirmDelete" = false;
"files.autoSave" = "afterDelay";
2024-03-29 07:21:25 -04:00
"git.autofetch" = true;
"git.confirmSync" = false;
"nix.formatterPath" = lib.getExe pkgs.alejandra;
2024-05-05 22:00:46 -04:00
"terminal.external.linuxExec" = config.alyraffauf.desktop.defaultApps.terminal.exe;
"update.mode" = "none";
"window.menuBarVisibility" = "hidden";
2024-03-29 07:21:25 -04:00
"window.zoomPerWindow" = false;
"workbench.colorTheme" =
if config.alyraffauf.desktop.theme.colors.preferDark
then "Catppuccin Frappé"
else "Catppuccin Latte";
"workbench.iconTheme" =
if config.alyraffauf.desktop.theme.colors.preferDark
then "catppuccin-frappe"
else "catppuccin-latte";
"workbench.preferredDarkColorTheme" = "Catppuccin Frappé";
"workbench.preferredLightColorTheme" = "Catppuccin Latte";
2024-03-29 07:21:25 -04:00
};
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.jnoortheen.nix-ide
2024-04-21 14:49:48 -04:00
vscode-extensions.justusadam.language-haskell
2024-03-29 07:21:25 -04:00
vscode-extensions.ms-python.python
vscode-extensions.ms-vscode.cpptools-extension-pack
2024-05-31 19:23:32 -04:00
vscode-extensions.oderwat.indent-rainbow
2024-03-29 07:21:25 -04:00
vscode-extensions.rubymaniac.vscode-paste-and-indent
vscode-extensions.rust-lang.rust-analyzer
vscode-extensions.tomoki1207.pdf
];
};
};
}