feat(vscode): add enable option

This commit is contained in:
2026-05-22 09:51:46 +02:00
parent adce0a0872
commit e5fad8a398
2 changed files with 16 additions and 3 deletions

View File

@@ -86,6 +86,7 @@
infra.enable = true; infra.enable = true;
go.enable = true; go.enable = true;
ticketing.enable = true; ticketing.enable = true;
vscode.enable = true;
programs = { programs = {
gh.enable = true; gh.enable = true;

View File

@@ -1,7 +1,19 @@
{ config, pkgs, ... }:
{ {
config = { config,
lib,
pkgs,
...
}:
let
cfg = config.vscode;
in
{
options.vscode = {
enable = lib.mkEnableOption "Visual Studio Code";
};
config = lib.mkIf cfg.enable {
home.packages = [ (config.nixgl.wrap (config.wrapApp pkgs.vscode "--no-sandbox")) ]; home.packages = [ (config.nixgl.wrap (config.wrapApp pkgs.vscode "--no-sandbox")) ];
}; };
} }