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:
parent
750922d0b6
commit
09452d5cc6
@ -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
41
modules/vscodium.nix
Normal 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=";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user