make vscode more ganoo philosopy

This commit is contained in:
Sakooooo 2024-10-31 15:32:00 +04:00
parent b6ca69ea92
commit 4de4f31331
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 22 additions and 45 deletions

View file

@ -1,41 +1,28 @@
{ { outputs, options, config, lib, pkgs, ... }:
outputs, let cfg = config.modules.dev.editors.vscode;
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.dev.editors.vscode;
in { in {
imports = [ imports = [ ./fhs.nix ];
./fhs.nix options.modules.dev.editors.vscode = { enable = lib.mkEnableOption false; };
];
options.modules.dev.editors.vscode = {
enable = lib.mkEnableOption false;
};
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [ users.users.sako.packages = with pkgs;
(vscode-with-extensions.override { [
vscodeExtensions = with vscode-extensions; (vscode-with-extensions.override {
[ vscode = vscodium;
mkhl.direnv vscodeExtensions = with vscode-extensions;
vscodevim.vim [
ms-python.vscode-pylance mkhl.direnv
ms-vscode.cmake-tools vscodevim.vim
ms-dotnettools.csharp ms-python.vscode-pylance
] ms-vscode.cmake-tools
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [ ms-dotnettools.csharp
{ ] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [{
name = "better-comments"; name = "better-comments";
publisher = "aaron-bond"; publisher = "aaron-bond";
version = "3.0.2"; version = "3.0.2";
sha256 = "hQmA8PWjf2Nd60v5EAuqqD8LIEu7slrNs8luc3ePgZc="; sha256 = "hQmA8PWjf2Nd60v5EAuqqD8LIEu7slrNs8luc3ePgZc=";
} }];
]; })
}) ];
];
}; };
} }

View file

@ -1,21 +1,11 @@
{ { outputs, options, config, lib, pkgs, ... }:
outputs, let cfg = config.modules.dev.editors.vscode.fhs;
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.dev.editors.vscode.fhs;
in { in {
options.modules.dev.editors.vscode.fhs = { options.modules.dev.editors.vscode.fhs = {
enable = lib.mkEnableOption false; enable = lib.mkEnableOption false;
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [ users.users.sako.packages = with pkgs; [ vscodium.fhs ];
vscode.fhs
];
}; };
} }