Jafner.net/nix/home-manager/app/vscode/vscode.nix
Joey Hafner e66a0d48a9
Some checks are pending
SSH and echo to file / ssh (push) Waiting to run
Add enableSmartCommit
2024-10-16 21:41:14 -07:00

48 lines
1.3 KiB
Nix

{ pkgs, lib, ... }:
{
## Nix LSP
home.packages = with pkgs; [ nixd ];
## VSCodium
programs.vscode = {
enable = true;
package = pkgs.vscodium;
mutableExtensionsDir = true;
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
continue.continue
];
userSettings = {
"nix.serverPath" = "nixd";
"nix.enableLanguageServer" = true;
"explorer.confirmDragAndDrop" = false;
"workbench.colorTheme" = "Stylix";
"git.autofetch" = true;
"git.confirmSync" = false;
"editor.fontFamily" = lib.mkForce "'Symbols Nerd Font Mono', 'PowerlineSymbols', 'DejaVu Sans Mono'";
"git.enableSmartCommit" = true;
};
userTasks = {
version = "2.0.0";
tasks = [
{
type = "shell";
label = "NixOS Rebuild Switch";
command = "sudo nixos-rebuild switch --flake ~/Jafner.net/nix";
problemMatcher = [];
}
{
type = "shell";
label = "Home-Manager Switch";
command = "home-manager switch -b bak --flake ~/Jafner.net/nix";
problemMatcher = [];
}
{
label = "System Rebuild";
dependsOn = ["NixOS Rebuild Switch" "Home-Manager Switch" ];
dependsOrder = "sequence";
problemMatcher = [];
}
];
};
};
}