nixcfg/homeManagerModules/apps/vsCodium/default.nix

53 lines
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;
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 Macchiato" else "Catppuccin Latte";
"workbench.iconTheme" = if config.alyraffauf.desktop.theme.colors.preferDark then "catppuccin-macchiato" else "catppuccin-latte";
"workbench.preferredDarkColorTheme" = "Catppuccin Macchiato";
"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
vscode-extensions.rubymaniac.vscode-paste-and-indent
vscode-extensions.rust-lang.rust-analyzer
vscode-extensions.tomoki1207.pdf
];
};
};
}