vsocde shengaingaions

This commit is contained in:
Sakooooo 2023-08-06 20:51:09 +03:00
parent c3333d9585
commit 42454c5737
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 22 additions and 7 deletions

View file

@ -62,7 +62,7 @@
dev = { dev = {
editors = { editors = {
nvim.enable = true; nvim.enable = true;
vscode.enable = true; vscode.enableFhs = true;
}; };
nixd.enable = true; nixd.enable = true;
nil.enable = false; nil.enable = false;

View file

@ -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 = { options.modules.dev.editors.vscode = {
enable = mkEnableOption false; enable = mkEnableOption false;
enableFhs = mkEnableOption false;
}; };
config = mkIf cfg.enable { fhs = mkIf cfg.enableFhs {
users.users.sako.packages = with pkgs; [ users.users.sako.packages = with pkgs; [
vscode.fhs vscode.fhs
]; ];
}; };
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
(vscode-with-extensions.override {
vscodeExtensions = with vscode-extensions; [
];
})
];
};
} }