1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add vscodium to stel-xps

This commit is contained in:
Stefan Ellmauthaler 2024-02-06 16:28:56 +01:00
parent 750922d0b6
commit 09452d5cc6
Failed to extract signature
2 changed files with 44 additions and 0 deletions

View File

@ -48,6 +48,9 @@
# enable wireguard # enable wireguard
wireguard.enable = true; wireguard.enable = true;
# vscodium
vscodium.enable = true;
# user setup # user setup
users = { users = {
enable = true; enable = true;

41
modules/vscodium.nix Normal file
View File

@ -0,0 +1,41 @@
{
config,
lib,
pkgs,
...
}:
with lib; {
options.elss.vscodium.enable = mkEnableOption "Configure VSCodium with needed extensions";
config = let
cfg = config.elss.vscodium;
in
mkIf cfg.enable {
environment.systemPackages = with pkgs; [
(vscode-with-extensions.override {
vscode = vscodium;
vscodeExtensions = with vscode-extensions;
[
mkhl.direnv
vadimcn.vscode-lldb
rust-lang.rust-analyzer
serayuzgur.crates
tamasfe.even-better-toml
yzhang.markdown-all-in-one
bbenoist.nix
redhat.vscode-yaml
ms-python.python
ms-azuretools.vscode-docker
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
{
name = "vscode-rustfmt";
publisher = "statiolake";
version = "0.1.2";
sha256 = "8caLIaURug+7tclziywtKh86sKAMYHNO5oEPIwvp+U4=";
}
];
})
];
};
}