2024-04-07 22:14:35 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: {
|
2024-06-26 22:13:02 -04:00
|
|
|
config = lib.mkIf config.ar.home.apps.vsCodium.enable {
|
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-26 22:13:02 -04:00
|
|
|
"editor.fontFamily" = "'NotoSansM Nerd Font','${config.ar.home.theme.terminalFont.name}', 'monospace', monospace";
|
2024-06-22 14:45:25 -04:00
|
|
|
"editor.fontSize" = lib.mkDefault 14;
|
2024-06-28 21:07:39 -04:00
|
|
|
"editor.rulers" = [80];
|
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-29 21:35:07 -04:00
|
|
|
"terminal.external.linuxExec" = lib.getExe config.ar.home.defaultApps.terminal;
|
2024-06-28 21:07:39 -04:00
|
|
|
"terminal.integrated.fontSize" = lib.mkDefault 14;
|
2024-03-29 11:16:31 -04:00
|
|
|
"update.mode" = "none";
|
|
|
|
"window.menuBarVisibility" = "hidden";
|
2024-06-22 20:19:34 -04:00
|
|
|
"window.titleBarStyle" =
|
2024-06-26 22:13:02 -04:00
|
|
|
if config.ar.home.desktop.gnome.enable
|
2024-06-22 20:19:34 -04:00
|
|
|
then "custom"
|
|
|
|
else "native";
|
2024-03-29 07:21:25 -04:00
|
|
|
"window.zoomPerWindow" = false;
|
2024-05-11 00:58:33 -04:00
|
|
|
"workbench.colorTheme" =
|
2024-06-26 22:13:02 -04:00
|
|
|
if config.ar.home.theme.colors.preferDark
|
2024-07-01 22:59:41 -04:00
|
|
|
then "Adwaita Dark"
|
|
|
|
else "Adwaita";
|
|
|
|
"workbench.iconTheme" = "null";
|
|
|
|
"workbench.preferredDarkColorTheme" = "Adwaita Dark";
|
|
|
|
"workbench.preferredLightColorTheme" = "Adwaita";
|
2024-03-29 07:21:25 -04:00
|
|
|
};
|
|
|
|
|
2024-06-03 18:35:32 -04:00
|
|
|
extensions = with pkgs.vscode-extensions; [
|
|
|
|
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
|
2024-07-01 22:59:41 -04:00
|
|
|
piousdeer.adwaita-theme
|
2024-06-03 18:35:32 -04:00
|
|
|
rubymaniac.vscode-paste-and-indent
|
|
|
|
rust-lang.rust-analyzer
|
|
|
|
tomoki1207.pdf
|
2024-03-29 07:21:25 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|