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,24 +1,14 @@
{
outputs,
options,
config,
lib,
pkgs,
...
}:
let
cfg = config.modules.dev.editors.vscode;
{ outputs, options, config, lib, pkgs, ... }:
let cfg = config.modules.dev.editors.vscode;
in {
imports = [
./fhs.nix
];
options.modules.dev.editors.vscode = {
enable = lib.mkEnableOption false;
};
imports = [ ./fhs.nix ];
options.modules.dev.editors.vscode = { enable = lib.mkEnableOption false; };
config = lib.mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
users.users.sako.packages = with pkgs;
[
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions;
[
mkhl.direnv
@ -26,15 +16,12 @@ in {
ms-python.vscode-pylance
ms-vscode.cmake-tools
ms-dotnettools.csharp
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [{
name = "better-comments";
publisher = "aaron-bond";
version = "3.0.2";
sha256 = "hQmA8PWjf2Nd60v5EAuqqD8LIEu7slrNs8luc3ePgZc=";
}
];
}];
})
];
};

View file

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