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" "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": { "nix2container": {
"inputs": { "inputs": {
"flake-utils": [ "flake-utils": [
@ -371,6 +397,7 @@
"impermanence": "impermanence", "impermanence": "impermanence",
"lix": "lix", "lix": "lix",
"lix-module": "lix-module", "lix-module": "lix-module",
"nix-vscode-extensions": "nix-vscode-extensions",
"nix2container": "nix2container", "nix2container": "nix2container",
"nixos-hardware": "nixos-hardware", "nixos-hardware": "nixos-hardware",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",

View file

@ -42,6 +42,12 @@
inputs.lix.follows = "lix"; inputs.lix.follows = "lix";
inputs.nixpkgs.follows = "nixpkgs"; 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 = { nix2container = {
url = "github:nlewo/nix2container"; url = "github:nlewo/nix2container";
inputs.flake-utils.follows = "flake-utils"; inputs.flake-utils.follows = "flake-utils";

View file

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

View file

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