Florian RICHER
b7f82f87e8
All checks were successful
check / check (push) Successful in 34s
Reviewed-on: https://gitea.mrdev023.fr/florian.richer/nixos/pulls/1 Co-authored-by: Florian RICHER <florian.richer@protonmail.com> Co-committed-by: Florian RICHER <florian.richer@protonmail.com>
47 lines
No EOL
936 B
Nix
47 lines
No EOL
936 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.modules.home.apps.vscode;
|
|
in
|
|
{
|
|
options.modules.home.apps.vscode = {
|
|
enable = mkEnableOption ''
|
|
Enable vscode with my custom configurations
|
|
'';
|
|
};
|
|
config = mkIf cfg.enable {
|
|
programs.vscode = {
|
|
enable = true;
|
|
enableUpdateCheck = false;
|
|
enableExtensionUpdateCheck = false;
|
|
|
|
userSettings = {
|
|
"files.autoSave" = "onFocusChange";
|
|
"emmet.includeLanguages" = {
|
|
"phoenix-heex" = "html";
|
|
};
|
|
"git.autofetch" = true;
|
|
};
|
|
|
|
userTasks = {};
|
|
|
|
extensions = with pkgs; with vscode-extensions; [
|
|
# Nix
|
|
bbenoist.nix
|
|
|
|
# Rust
|
|
rust-lang.rust-analyzer
|
|
serayuzgur.crates
|
|
tamasfe.even-better-toml
|
|
|
|
# Phoenix
|
|
phoenixframework.phoenix
|
|
elixir-lsp.vscode-elixir-ls
|
|
|
|
# Ruby
|
|
shopify.ruby-lsp
|
|
];
|
|
};
|
|
};
|
|
} |