users/foo-dogsquared/programs/vs-code: init

This commit is contained in:
Gabriel Arazas 2023-12-17 20:12:31 +08:00
parent 5d5389a87f
commit 771ba8645a
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
3 changed files with 38 additions and 7 deletions

View File

@ -20,6 +20,7 @@
research.enable = true;
shell.enable = true;
terminal-multiplexer.enable = true;
vs-code.enable = true;
};
setups = {
@ -46,13 +47,6 @@
hledger # Trying to be a good accountant.
];
# My custom modules.
profiles = {
editors = {
vscode.enable = true;
};
};
home.stateVersion = "23.11";
xdg.configFile = {

View File

@ -11,6 +11,7 @@
./programs/research.nix
./programs/shell.nix
./programs/terminal-multiplexer.nix
./programs/vs-code.nix
./setups/desktop.nix
./setups/fonts.nix

View File

@ -0,0 +1,36 @@
{ config, lib, pkgs, ... }:
let
userCfg = config.users.foo-dogsquared;
cfg = userCfg.programs.vs-code;
in
{
options.users.foo-dogsquared.programs.vs-code.enable =
lib.mkEnableOption "foo-dogsquared's Visual Studio Code setup";
config = lib.mkIf cfg.enable {
programs.vscode = {
extensions = with pkgs; [
# Additional language support.
bbenoist.nix
graphql.vscode-graphql
ms-vscode.cmake-tools
ms-vscode.cpptools
ms-vscode.powershell
# Extra editor niceties.
eamodio.gitlens
mkhl.direnv
usernamehw.errorlens
vadimcn.vscode-lldb
# The other niceties.
editorconfig.editorconfig
];
settings = {
"extensions.ignoreRecommendations" = true;
};
};
};
}