mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 15:03:55 -05:00
61 lines
2 KiB
Nix
61 lines
2 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
options = {
|
|
alyraffauf.apps.vsCodium.enable = lib.mkEnableOption "Enables VSCodium.";
|
|
};
|
|
|
|
config = lib.mkIf config.alyraffauf.apps.vsCodium.enable {
|
|
alyraffauf.apps.alacritty.enable = lib.mkDefault true;
|
|
|
|
programs.vscode = {
|
|
enable = true;
|
|
package = pkgs.vscodium;
|
|
enableUpdateCheck = false;
|
|
enableExtensionUpdateCheck = false;
|
|
userSettings = {
|
|
"diffEditor.ignoreTrimWhitespace" = false;
|
|
"editor.fontFamily" = "'NotoSansM Nerd Font','${config.alyraffauf.desktop.theme.terminalFont.name}', 'monospace', monospace";
|
|
"explorer.confirmDelete" = false;
|
|
"files.autoSave" = "afterDelay";
|
|
"git.autofetch" = true;
|
|
"git.confirmSync" = false;
|
|
"nix.formatterPath" = lib.getExe pkgs.alejandra;
|
|
"terminal.external.linuxExec" = config.alyraffauf.desktop.defaultApps.terminal.exe;
|
|
"update.mode" = "none";
|
|
"window.menuBarVisibility" = "hidden";
|
|
"window.zoomPerWindow" = false;
|
|
"workbench.colorTheme" =
|
|
if config.alyraffauf.desktop.theme.colors.preferDark
|
|
then "Catppuccin Frappé"
|
|
else "Catppuccin Latte";
|
|
"workbench.iconTheme" =
|
|
if config.alyraffauf.desktop.theme.colors.preferDark
|
|
then "catppuccin-frappe"
|
|
else "catppuccin-latte";
|
|
"workbench.preferredDarkColorTheme" = "Catppuccin Frappé";
|
|
"workbench.preferredLightColorTheme" = "Catppuccin Latte";
|
|
};
|
|
|
|
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
|
|
];
|
|
};
|
|
};
|
|
}
|