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

@@ -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")) ];
};
}