2024-03-29 07:21:25 -04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
2024-03-29 07:31:00 -04:00
|
|
|
options = {
|
|
|
|
guiApps.vsCodium.enable = lib.mkEnableOption "Enables VSCodium.";
|
|
|
|
};
|
2024-03-29 07:21:25 -04:00
|
|
|
|
2024-03-29 07:31:00 -04:00
|
|
|
config = lib.mkIf config.guiApps.vsCodium.enable {
|
2024-03-29 07:21:25 -04:00
|
|
|
|
|
|
|
# Necessary fonts.
|
2024-03-29 11:03:03 -04:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
(nerdfonts.override { fonts = [ "Noto" ]; })
|
|
|
|
nixfmt
|
|
|
|
];
|
2024-03-29 07:21:25 -04:00
|
|
|
|
|
|
|
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";
|
2024-03-29 07:31:00 -04:00
|
|
|
"editor.fontFamily" = "'NotoSansM Nerd Font', 'monospace', monospace";
|
2024-03-29 07:21:25 -04:00
|
|
|
"window.menuBarVisibility" = "hidden";
|
|
|
|
"diffEditor.ignoreTrimWhitespace" = false;
|
2024-03-29 11:03:03 -04:00
|
|
|
"nix.formatterPath" = "nixfmt";
|
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
|
2024-03-29 11:03:03 -04:00
|
|
|
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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|