mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
users/foo-dogsquared/programs/vs-code: init
This commit is contained in:
parent
5d5389a87f
commit
771ba8645a
@ -20,6 +20,7 @@
|
|||||||
research.enable = true;
|
research.enable = true;
|
||||||
shell.enable = true;
|
shell.enable = true;
|
||||||
terminal-multiplexer.enable = true;
|
terminal-multiplexer.enable = true;
|
||||||
|
vs-code.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
setups = {
|
setups = {
|
||||||
@ -46,13 +47,6 @@
|
|||||||
hledger # Trying to be a good accountant.
|
hledger # Trying to be a good accountant.
|
||||||
];
|
];
|
||||||
|
|
||||||
# My custom modules.
|
|
||||||
profiles = {
|
|
||||||
editors = {
|
|
||||||
vscode.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
home.stateVersion = "23.11";
|
home.stateVersion = "23.11";
|
||||||
|
|
||||||
xdg.configFile = {
|
xdg.configFile = {
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
./programs/research.nix
|
./programs/research.nix
|
||||||
./programs/shell.nix
|
./programs/shell.nix
|
||||||
./programs/terminal-multiplexer.nix
|
./programs/terminal-multiplexer.nix
|
||||||
|
./programs/vs-code.nix
|
||||||
|
|
||||||
./setups/desktop.nix
|
./setups/desktop.nix
|
||||||
./setups/fonts.nix
|
./setups/fonts.nix
|
||||||
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user