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; [ + ]; + }) + ]; + }; }