feat(vscode): add enable option
This commit is contained in:
@@ -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")) ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user