2024-04-07 22:14:35 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-04-17 22:39:00 -04:00
|
|
|
config = lib.mkIf config.alyraffauf.apps.vsCodium.enable {
|
|
|
|
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
|
2024-03-29 11:20:37 -04:00
|
|
|
|
2024-03-29 07:21:25 -04:00
|
|
|
programs.vscode = {
|
|
|
|
enable = true;
|
2024-06-04 01:18:46 -04:00
|
|
|
package = pkgs.vscodium;
|
2024-03-29 07:21:25 -04:00
|
|
|
enableUpdateCheck = false;
|
2024-03-29 11:16:31 -04:00
|
|
|
enableExtensionUpdateCheck = false;
|
2024-03-29 07:21:25 -04:00
|
|
|
userSettings = {
|
2024-03-29 11:16:31 -04:00
|
|
|
"diffEditor.ignoreTrimWhitespace" = false;
|
2024-06-11 17:49:50 -04:00
|
|
|
"editor.fontFamily" = "'NotoSansM Nerd Font','${config.alyraffauf.theme.terminalFont.name}', 'monospace', monospace";
|
2024-06-22 12:31:50 -04:00
|
|
|
"editor.fontSize" = config.alyraffauf.theme.terminalFont.size;
|
|
|
|
"terminal.integrated.fontSize" = config.alyraffauf.theme.terminalFont.size;
|
2024-03-29 11:16:31 -04:00
|
|
|
"explorer.confirmDelete" = false;
|
|
|
|
"files.autoSave" = "afterDelay";
|
2024-03-29 07:21:25 -04:00
|
|
|
"git.autofetch" = true;
|
|
|
|
"git.confirmSync" = false;
|
2024-05-05 19:39:36 -04:00
|
|
|
"nix.formatterPath" = lib.getExe pkgs.alejandra;
|
2024-06-11 17:49:50 -04:00
|
|
|
"terminal.external.linuxExec" = config.alyraffauf.defaultApps.terminal.exe;
|
2024-03-29 11:16:31 -04:00
|
|
|
"update.mode" = "none";
|
|
|
|
"window.menuBarVisibility" = "hidden";
|
2024-03-29 07:21:25 -04:00
|
|
|
"window.zoomPerWindow" = false;
|
2024-05-11 00:58:33 -04:00
|
|
|
"workbench.colorTheme" =
|
2024-06-11 17:49:50 -04:00
|
|
|
if config.alyraffauf.theme.colors.preferDark
|
2024-05-12 01:08:46 -04:00
|
|
|
then "Catppuccin Frappé"
|
2024-05-11 00:58:33 -04:00
|
|
|
else "Catppuccin Latte";
|
|
|
|
"workbench.iconTheme" =
|
2024-06-11 17:49:50 -04:00
|
|
|
if config.alyraffauf.theme.colors.preferDark
|
2024-05-12 01:08:46 -04:00
|
|
|
then "catppuccin-frappe"
|
2024-05-11 00:58:33 -04:00
|
|
|
else "catppuccin-latte";
|
2024-05-12 01:08:46 -04:00
|
|
|
"workbench.preferredDarkColorTheme" = "Catppuccin Frappé";
|
2024-03-29 11:16:31 -04:00
|
|
|
"workbench.preferredLightColorTheme" = "Catppuccin Latte";
|
2024-03-29 07:21:25 -04:00
|
|
|
};
|
|
|
|
|
2024-06-03 18:35:32 -04:00
|
|
|
extensions = with pkgs.vscode-extensions; [
|
|
|
|
catppuccin.catppuccin-vsc
|
|
|
|
catppuccin.catppuccin-vsc-icons
|
|
|
|
coolbear.systemd-unit-file
|
|
|
|
github.vscode-github-actions
|
|
|
|
github.vscode-pull-request-github
|
|
|
|
jnoortheen.nix-ide
|
|
|
|
justusadam.language-haskell
|
|
|
|
ms-python.python
|
|
|
|
ms-vscode.cpptools-extension-pack
|
|
|
|
oderwat.indent-rainbow
|
|
|
|
rubymaniac.vscode-paste-and-indent
|
|
|
|
rust-lang.rust-analyzer
|
|
|
|
tomoki1207.pdf
|
2024-03-29 07:21:25 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|