make vscode more ganoo philosopy
This commit is contained in:
parent
b6ca69ea92
commit
4de4f31331
2 changed files with 22 additions and 45 deletions
|
@ -1,24 +1,14 @@
|
||||||
{
|
{ 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 {
|
(vscode-with-extensions.override {
|
||||||
|
vscode = vscodium;
|
||||||
vscodeExtensions = with vscode-extensions;
|
vscodeExtensions = with vscode-extensions;
|
||||||
[
|
[
|
||||||
mkhl.direnv
|
mkhl.direnv
|
||||||
|
@ -26,15 +16,12 @@ in {
|
||||||
ms-python.vscode-pylance
|
ms-python.vscode-pylance
|
||||||
ms-vscode.cmake-tools
|
ms-vscode.cmake-tools
|
||||||
ms-dotnettools.csharp
|
ms-dotnettools.csharp
|
||||||
]
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [{
|
||||||
++ 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=";
|
||||||
}
|
}];
|
||||||
];
|
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -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
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue