mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 08:09:16 -05:00
59 lines
2.1 KiB
Nix
59 lines
2.1 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 Macchiato"
|
|
else "Catppuccin Latte";
|
|
"workbench.iconTheme" =
|
|
if config.alyraffauf.desktop.theme.colors.preferDark
|
|
then "catppuccin-macchiato"
|
|
else "catppuccin-latte";
|
|
"workbench.preferredDarkColorTheme" = "Catppuccin Macchiato";
|
|
"workbench.preferredLightColorTheme" = "Catppuccin Latte";
|
|
};
|
|
|
|
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
|
|
vscode-extensions.jnoortheen.nix-ide
|
|
vscode-extensions.justusadam.language-haskell
|
|
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
|
|
];
|
|
};
|
|
};
|
|
}
|