mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
refactor: cleaned up nixos and home dirs
This commit is contained in:
parent
824a91d405
commit
e596e1c1b3
582 changed files with 2 additions and 22 deletions
18
modules/home/gui/apps/code/vsCode/config/extensions.nix
Executable file
18
modules/home/gui/apps/code/vsCode/config/extensions.nix
Executable file
|
@ -0,0 +1,18 @@
|
|||
{ pkgs, ... }:
|
||||
with pkgs.vscode-extensions;
|
||||
[
|
||||
catppuccin.catppuccin-vsc
|
||||
eamodio.gitlens
|
||||
elmtooling.elm-ls-vscode
|
||||
esbenp.prettier-vscode
|
||||
haskell.haskell
|
||||
james-yu.latex-workshop
|
||||
bbenoist.nix
|
||||
# jnoortheen.nix-ide
|
||||
mattn.lisp
|
||||
mkhl.direnv
|
||||
pkief.material-icon-theme
|
||||
streetsidesoftware.code-spell-checker
|
||||
tamasfe.even-better-toml
|
||||
brettm12345.nixfmt-vscode
|
||||
]
|
27
modules/home/gui/apps/code/vsCode/config/keybindings.nix
Executable file
27
modules/home/gui/apps/code/vsCode/config/keybindings.nix
Executable file
|
@ -0,0 +1,27 @@
|
|||
[
|
||||
{
|
||||
key = "ctrl+shift+s";
|
||||
command = "editor.action.insertCursorAtEndOfEachLineSelected";
|
||||
when = "textInputFocus";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+a";
|
||||
command = "editor.action.quickFix";
|
||||
when = "editorHasCodeActionsProvider && textInputFocus && !editorReadonly";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+f";
|
||||
command = "editor.action.formatDocument";
|
||||
when = "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+tab";
|
||||
command = "editor.action.indentationToSpaces";
|
||||
when = "textInputFocus";
|
||||
}
|
||||
{
|
||||
key = "ctrl+shift+d";
|
||||
command = "editor.action.deleteLines";
|
||||
when = "textInputFocus";
|
||||
}
|
||||
]
|
35
modules/home/gui/apps/code/vsCode/config/userSettings.nix
Executable file
35
modules/home/gui/apps/code/vsCode/config/userSettings.nix
Executable file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
let
|
||||
inherit (flake.config.aesthetics.themes)
|
||||
fonts
|
||||
;
|
||||
in
|
||||
{
|
||||
"git.confirmSync" = false;
|
||||
"editor.insertSpaces" = false;
|
||||
"files.autoSave" = "afterDelay";
|
||||
"git.enableSmartCommit" = true;
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.serverPath" = lib.getExe pkgs.nil;
|
||||
"nix.formatterPath" = lib.getExe pkgs.haskellPackages.nixfmt;
|
||||
"window.menuBarVisibility" = "toggle";
|
||||
"workbench.iconTheme" = "material-icon-theme";
|
||||
"workbench.startupEditor" = "none";
|
||||
"workbench.colorTheme" = "Catppuccin Macchiato";
|
||||
"workbench.statusBar.visible" = false;
|
||||
"editor.multiCursorLimit" = 700000;
|
||||
"editor.wordWrap" = "on";
|
||||
"editor.fontSize" = fonts.sizes.applications.size0;
|
||||
"editor.fontFamily" = "'${fonts.names.name0}', 'monospace', monospace";
|
||||
"terminal.integrated.fontSize" = fonts.sizes.applications.size0;
|
||||
"terminal.integrated.fontFamily" = "'${fonts.names.name0}', 'monospace', monospace";
|
||||
"editor.fontLigatures" = true;
|
||||
"elmLS.disableElmLSDiagnostics" = true;
|
||||
"elmLS.elmReviewDiagnostics" = "warning";
|
||||
"elmLS.elmReviewPath" = "/etc/profiles/per-user/nick/bin/elm-review";
|
||||
}
|
34
modules/home/gui/apps/code/vsCode/default.nix
Executable file
34
modules/home/gui/apps/code/vsCode/default.nix
Executable file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
flake,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs = {
|
||||
vscode =
|
||||
let
|
||||
configPath = ./config;
|
||||
keybindingsPath = import (configPath + /keybindings.nix);
|
||||
extensionsPath = import (configPath + /extensions.nix) {
|
||||
inherit
|
||||
pkgs
|
||||
;
|
||||
};
|
||||
userSettingsPath = import (configPath + /userSettings.nix) {
|
||||
inherit
|
||||
pkgs
|
||||
lib
|
||||
flake
|
||||
;
|
||||
};
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
package = pkgs.vscode;
|
||||
keybindings = keybindingsPath;
|
||||
extensions = extensionsPath;
|
||||
userSettings = userSettingsPath;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue