add vscode

This commit is contained in:
Sakooooo 2023-07-31 16:15:24 +03:00
parent 3ce89f69ea
commit 6285f5e30f
Signed by: sako
GPG key ID: 3FD715D87D7725E0
4 changed files with 22 additions and 5 deletions

View file

@ -16,6 +16,11 @@ in
clang clang
gdb gdb
pkg-config pkg-config
# lsp
clang-tools
cmake-language-server
# lint
cpplint
]; ];
}; };
} }

View file

@ -1,5 +1,6 @@
{ {
imports = [ imports = [
./nvim ./nvim
./vscode
]; ];
} }

View file

@ -12,11 +12,6 @@ in
# because yes # because yes
users.users.sako.packages = with pkgs; [ users.users.sako.packages = with pkgs; [
neovim neovim
# lsp
clang-tools
cmake-language-server
# lint
cpplint
]; ];
home-manager.users.sako.xdg.configFile.nvim = { home-manager.users.sako.xdg.configFile.nvim = {
source = ../../../../config/nvim; source = ../../../../config/nvim;

View file

@ -0,0 +1,16 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.editors.vscode;
in
{
options.modules.dev.editors.vscode = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
vscode.fhs
];
};
}