started to move extensions into configurable options
This commit is contained in:
parent
dfcd16fdd2
commit
99fb7b8a62
6 changed files with 106 additions and 16 deletions
|
@ -29,7 +29,6 @@ in {
|
|||
|
||||
userSettings = lib.mkMerge [
|
||||
{
|
||||
"workbench.colorTheme" = "Atom One Dark";
|
||||
"javascript.updateImportsOnFileMove.enabled" = "always";
|
||||
"editor.tabSize" = 2;
|
||||
"editor.insertSpaces" = false;
|
||||
|
@ -45,11 +44,18 @@ in {
|
|||
};
|
||||
"alejandra.program" = "alejandra";
|
||||
})
|
||||
(lib.mkIf ai-tooling-enabled {
|
||||
"aiCode.ollamaHost" = "http://defiant:11434";
|
||||
})
|
||||
];
|
||||
|
||||
# TODO: move the rest of the extensions into enable options like this
|
||||
extraExtensions = {
|
||||
oneDark.enable = true;
|
||||
atomKeybindings.enable = true;
|
||||
aiCode = {
|
||||
enable = ai-tooling-enabled;
|
||||
ollamaHost = "http://defiant:11434";
|
||||
};
|
||||
};
|
||||
|
||||
extensions = let
|
||||
extension-pkgs = pkgs.nix-vscode-extensions.forVSCodeVersion config.programs.vscode.package.version;
|
||||
in (
|
||||
|
@ -57,8 +63,6 @@ in {
|
|||
with extension-pkgs.open-vsx; (
|
||||
[
|
||||
# vs code feel extensions
|
||||
ms-vscode.atom-keybindings
|
||||
akamud.vscode-theme-onedark
|
||||
streetsidesoftware.code-spell-checker
|
||||
streetsidesoftware.code-spell-checker-german
|
||||
streetsidesoftware.code-spell-checker-italian
|
||||
|
@ -104,16 +108,6 @@ in {
|
|||
])
|
||||
)
|
||||
)
|
||||
++ (
|
||||
with pkgs.codium-extensions; (
|
||||
[]
|
||||
++ (
|
||||
lib.lists.optionals ai-tooling-enabled [
|
||||
ai-code
|
||||
]
|
||||
)
|
||||
)
|
||||
)
|
||||
);
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue