From 42454c5737c4faefc463cd3827973cf490bf3ed5 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 6 Aug 2023 20:51:09 +0300 Subject: [PATCH] vsocde shengaingaions --- hosts/sakotop/configuration.nix | 2 +- modules/dev/editors/vscode/default.nix | 27 ++++++++++++++++++++------ 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 48f4f08c..e2e542a9 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -62,7 +62,7 @@ dev = { editors = { nvim.enable = true; - vscode.enable = true; + vscode.enableFhs = true; }; nixd.enable = true; nil.enable = false; diff --git a/modules/dev/editors/vscode/default.nix b/modules/dev/editors/vscode/default.nix index 2401d2d2..7216e8d1 100644 --- a/modules/dev/editors/vscode/default.nix +++ b/modules/dev/editors/vscode/default.nix @@ -1,16 +1,31 @@ -{ outputs, options, config, lib, pkgs, ...}: -with lib; -let - cfg = config.modules.dev.editors.vscode; -in { + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.dev.editors.vscode; +in { options.modules.dev.editors.vscode = { enable = mkEnableOption false; + enableFhs = mkEnableOption false; }; - config = mkIf cfg.enable { + fhs = mkIf cfg.enableFhs { users.users.sako.packages = with pkgs; [ vscode.fhs ]; }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + (vscode-with-extensions.override { + vscodeExtensions = with vscode-extensions; [ + ]; + }) + ]; + }; }