nixcfg/homeManagerModules/apps/vsCodium/default.nix

59 lines
1.9 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
# Necessary fonts.
home.packages = with pkgs; [
(nerdfonts.override {fonts = ["Noto"];})
alejandra
];
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;
"editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace";
"explorer.confirmDelete" = false;
"files.autoSave" = "afterDelay";
2024-03-29 07:21:25 -04:00
"git.autofetch" = true;
"git.confirmSync" = false;
"nix.formatterPath" = "${pkgs.alejandra}/bin/alejandra";
"terminal.external.linuxExec" = "${pkgs.alacritty}/bin/alacritty";
"update.mode" = "none";
"window.menuBarVisibility" = "hidden";
2024-03-29 07:21:25 -04:00
"window.zoomPerWindow" = false;
"workbench.colorTheme" = "Catppuccin Macchiato";
2024-03-29 07:21:25 -04:00
"workbench.iconTheme" = "catppuccin-macchiato";
"workbench.preferredDarkColorTheme" = "Catppuccin Macchiato";
"workbench.preferredLightColorTheme" = "Catppuccin Latte";
2024-03-29 07:21:25 -04:00
};
extensions = with pkgs; [
2024-04-19 17:28:29 -04:00
vscode-extensions.bbenoist.nix
2024-03-29 07:21:25 -04:00
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-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
];
};
};
}