add rust extensions

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-13 15:46:14 +01:00
parent eb25937535
commit 763385e337
4 changed files with 49 additions and 6 deletions

View file

@ -206,6 +206,32 @@
"url": "https://git.lix.systems/lix-project/nixos-module"
}
},
"nix-vscode-extensions": {
"inputs": {
"flake-compat": [
"flake-compat"
],
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1731462465,
"narHash": "sha256-SL/d2lvJO+CDzQno7sOyUuktE7+o6kW1qpWsG8tBte4=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"rev": "ac80fc4a7e7604c5699cbe61839af03bd55bf7bf",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"type": "github"
}
},
"nix2container": {
"inputs": {
"flake-utils": [
@ -371,6 +397,7 @@
"impermanence": "impermanence",
"lix": "lix",
"lix-module": "lix-module",
"nix-vscode-extensions": "nix-vscode-extensions",
"nix2container": "nix2container",
"nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs",

View file

@ -42,6 +42,12 @@
inputs.lix.follows = "lix";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-vscode-extensions = {
url = "github:nix-community/nix-vscode-extensions";
inputs.flake-compat.follows = "flake-compat";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
nix2container = {
url = "github:nlewo/nix2container";
inputs.flake-utils.follows = "flake-utils";

View file

@ -5,6 +5,7 @@
inTester,
self,
rust-overlay,
nix-vscode-extensions,
...
}:
with lib;
@ -29,6 +30,7 @@ with lib;
nixpkgs.overlays = [
self.overlays.default
(import rust-overlay)
nix-vscode-extensions.overlays.default
];
}
else

View file

@ -8,12 +8,20 @@
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
mkhl.direnv
pkief.material-icon-theme
signageos.signageos-vscode-sops
];
extensions =
(with pkgs.vscode-extensions; [
fill-labs.dependi
jnoortheen.nix-ide
mkhl.direnv
pkief.material-icon-theme
rust-lang.rust-analyzer
signageos.signageos-vscode-sops
tamasfe.even-better-toml
vadimcn.vscode-lldb
])
++ (with pkgs.vscode-marketplace; [
jscearcy.rust-doc-viewer
]);
userSettings = {
"editor.fontFamily" = "\"Fira Code\", \"Fira Code Nerd Font Mono\", monospace";
"editor.fontLigatures" = true;