mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-29 08:09:16 -05:00
Aly Raffauf
23c783cfc5
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run
* swaylock: update to standard font name * theme: setup font options and mgirate theme.nix * zed: migrate to font modules * swaylock: migrate to font modules * kitty: migrate to font modules * fuzzel: migrate to font modules * vsCodium: migrate to font modules * rofi: migrate to font modules * rofi: migrate to font modules * waybar: migrate to font modules * alacritty: migrate to font modules * alacritty: pull font size from theme module * nixfmt * rustboro: migrate font overrides * waybar: calculate font size from theme font settings * vsCodium: set font size from module * zed: set font size from module * sway: migrate to font modules * wlogout: migrate to font modules * mako: migrate to font modules * sway: fix improper option reference
113 lines
3.2 KiB
Nix
113 lines
3.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.ar.home;
|
|
in {
|
|
config = lib.mkIf cfg.apps.vsCodium.enable {
|
|
programs.vscode = {
|
|
enable = true;
|
|
package = pkgs.vscodium;
|
|
enableUpdateCheck = false;
|
|
enableExtensionUpdateCheck = false;
|
|
|
|
keybindings = [
|
|
{
|
|
"key" = "alt+e";
|
|
"command" = "workbench.action.quickOpen";
|
|
}
|
|
{
|
|
"key" = "ctrl+p";
|
|
"command" = "-workbench.action.quickOpen";
|
|
}
|
|
{
|
|
"key" = "ctrl+p";
|
|
"command" = "workbench.action.showCommands";
|
|
}
|
|
{
|
|
"key" = "ctrl+shift+p";
|
|
"command" = "-workbench.action.showCommands";
|
|
}
|
|
];
|
|
|
|
userSettings = {
|
|
"diffEditor.ignoreTrimWhitespace" = false;
|
|
"editor.fontFamily" = "'${cfg.theme.monospaceFont.name} ${toString cfg.theme.monospaceFont.size}', 'monospace', monospace";
|
|
"editor.fontSize" = cfg.theme.monospaceFont.size + 3;
|
|
"editor.formatOnPaste" = true;
|
|
"editor.formatOnSave" = true;
|
|
"editor.formatOnType" = true;
|
|
"editor.rulers" = [80];
|
|
"editor.wordWrap" = "wordWrapColumn";
|
|
"editor.wordWrapColumn" = 80;
|
|
"explorer.confirmDelete" = false;
|
|
"files.autoSave" = "afterDelay";
|
|
"git.autofetch" = true;
|
|
"git.confirmSync" = false;
|
|
|
|
"nix" = {
|
|
"enableLanguageServer" = true;
|
|
"formatterPath" = lib.getExe pkgs.alejandra;
|
|
"serverPath" = lib.getExe pkgs.nixd;
|
|
|
|
"serverSettings" = {
|
|
"nil" = {
|
|
"diagnostics" = {
|
|
"ignored" = ["unused_binding" "unused_with"];
|
|
};
|
|
|
|
"formatting" = {
|
|
"command" = ["${lib.getExe pkgs.alejandra}"];
|
|
};
|
|
};
|
|
|
|
"nixd" = {
|
|
"formatting" = {
|
|
"command" = ["${lib.getExe pkgs.alejandra}"];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
"[shellscript]" = {
|
|
"editor.defaultFormatter" = "foxundermoon.shell-format";
|
|
};
|
|
|
|
"shellformat.flag" = "-i 4";
|
|
|
|
"terminal.external.linuxExec" = lib.getExe cfg.defaultApps.terminal;
|
|
"terminal.integrated.fontSize" = cfg.theme.monospaceFont.size + 3;
|
|
"update.mode" = "none";
|
|
"window.menuBarVisibility" = "hidden";
|
|
"window.titleBarStyle" = lib.mkDefault "native";
|
|
"window.zoomPerWindow" = false;
|
|
"workbench.colorTheme" =
|
|
if cfg.theme.darkMode
|
|
then "Adwaita Dark"
|
|
else "Adwaita Light";
|
|
"workbench.iconTheme" = "vs-seti";
|
|
"workbench.preferredDarkColorTheme" = "Adwaita Dark";
|
|
"workbench.preferredLightColorTheme" = "Adwaita Light";
|
|
};
|
|
|
|
extensions = with pkgs.vscode-extensions; [
|
|
coolbear.systemd-unit-file
|
|
foxundermoon.shell-format
|
|
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
|
|
piousdeer.adwaita-theme
|
|
rubymaniac.vscode-paste-and-indent
|
|
rust-lang.rust-analyzer
|
|
tomoki1207.pdf
|
|
];
|
|
};
|
|
};
|
|
}
|