vsocde shengaingaions
This commit is contained in:
parent
c3333d9585
commit
42454c5737
2 changed files with 22 additions and 7 deletions
|
@ -62,7 +62,7 @@
|
|||
dev = {
|
||||
editors = {
|
||||
nvim.enable = true;
|
||||
vscode.enable = true;
|
||||
vscode.enableFhs = true;
|
||||
};
|
||||
nixd.enable = true;
|
||||
nil.enable = false;
|
||||
|
|
|
@ -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; [
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue