feat(vscode): use nix-community/nix-vscode-extensions

This commit is contained in:
winston 2023-06-19 23:49:03 +02:00
parent ca1f147a3b
commit 6c80ca1501
Signed by: winston
GPG key ID: 3786770EDBC2B481
4 changed files with 55 additions and 25 deletions

View file

@ -22,7 +22,7 @@
}, },
"crane": { "crane": {
"inputs": { "inputs": {
"flake-compat": "flake-compat", "flake-compat": "flake-compat_2",
"flake-utils": "flake-utils_2", "flake-utils": "flake-utils_2",
"nixpkgs": [ "nixpkgs": [
"nekowinston-nur", "nekowinston-nur",
@ -97,22 +97,6 @@
"type": "github" "type": "github"
} }
}, },
"flake-compat_3": {
"flake": false,
"locked": {
"lastModified": 1673956053,
"narHash": "sha256-4gtG9iQuiKITOjNQQeQIpoIB6b16fm+504Ch3sNKLd8=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "35bb57c0c8d8b62bbfd284272c928ceb64ddbde9",
"type": "github"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
}
},
"flake-parts": { "flake-parts": {
"inputs": { "inputs": {
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
@ -245,6 +229,32 @@
"type": "github" "type": "github"
} }
}, },
"nix-vscode-extensions": {
"inputs": {
"flake-compat": [
"flake-compat"
],
"flake-utils": [
"flake-utils"
],
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1687137792,
"narHash": "sha256-9QRiBKZSV3t7hBjB3crmiAa2Iv5gYn2Vv+WYsBWyzX4=",
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"rev": "3a01e46709256197c29c285a8231948e5dfc04a5",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-vscode-extensions",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1687103638, "lastModified": 1687103638,
@ -312,7 +322,9 @@
}, },
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_2", "flake-compat": [
"flake-compat"
],
"flake-utils": [ "flake-utils": [
"flake-utils" "flake-utils"
], ],
@ -342,11 +354,13 @@
"inputs": { "inputs": {
"caarlos0-nur": "caarlos0-nur", "caarlos0-nur": "caarlos0-nur",
"darwin": "darwin", "darwin": "darwin",
"flake-compat": "flake-compat",
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"flake-utils": "flake-utils", "flake-utils": "flake-utils",
"home-manager": "home-manager", "home-manager": "home-manager",
"nekowinston-nur": "nekowinston-nur", "nekowinston-nur": "nekowinston-nur",
"nix-index-database": "nix-index-database", "nix-index-database": "nix-index-database",
"nix-vscode-extensions": "nix-vscode-extensions",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nur": "nur", "nur": "nur",
"pre-commit-hooks": "pre-commit-hooks", "pre-commit-hooks": "pre-commit-hooks",
@ -406,7 +420,9 @@
}, },
"swayfx": { "swayfx": {
"inputs": { "inputs": {
"flake-compat": "flake-compat_3", "flake-compat": [
"flake-compat"
],
"nixpkgs": [ "nixpkgs": [
"nixpkgs" "nixpkgs"
] ]

View file

@ -12,6 +12,12 @@
nekowinston-nur.url = "github:nekowinston/nur"; nekowinston-nur.url = "github:nekowinston/nur";
caarlos0-nur.url = "github:caarlos0/nur"; caarlos0-nur.url = "github:caarlos0/nur";
caarlos0-nur.inputs.nixpkgs.follows = "nixpkgs"; caarlos0-nur.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";
};
sops.url = "github:Mic92/sops-nix"; sops.url = "github:Mic92/sops-nix";
sops.inputs.nixpkgs.follows = "nixpkgs"; sops.inputs.nixpkgs.follows = "nixpkgs";
@ -20,12 +26,19 @@
nix-index-database.inputs.nixpkgs.follows = "nixpkgs"; nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
swayfx.url = "github:willpower3309/swayfx"; swayfx.url = "github:willpower3309/swayfx";
swayfx.inputs.flake-compat.follows = "flake-compat";
swayfx.inputs.nixpkgs.follows = "nixpkgs"; swayfx.inputs.nixpkgs.follows = "nixpkgs";
pre-commit-hooks.url = "github:cachix/pre-commit-hooks.nix"; pre-commit-hooks = {
pre-commit-hooks.inputs.nixpkgs.follows = "nixpkgs"; url = "github:cachix/pre-commit-hooks.nix";
pre-commit-hooks.inputs.flake-utils.follows = "flake-utils"; inputs.flake-compat.follows = "flake-compat";
pre-commit-hooks.inputs.nixpkgs-stable.follows = "nixpkgs"; inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs-stable.follows = "nixpkgs";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-compat.url = "github:edolstra/flake-compat";
flake-compat.flake = false;
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
}; };

View file

@ -9,13 +9,13 @@ in {
programs.vscode = { programs.vscode = {
enable = true; enable = true;
package = pkgs.vscode; package = pkgs.vscode;
extensions = with pkgs.vscode-extensions; [ extensions = with pkgs.vscode-extensions.vscode-marketplace; [
jnoortheen.nix-ide jnoortheen.nix-ide
matklad.rust-analyzer
mkhl.direnv mkhl.direnv
ms-kubernetes-tools.vscode-kubernetes-tools ms-kubernetes-tools.vscode-kubernetes-tools
pkief.material-icon-theme pkief.material-icon-theme
redhat.vscode-yaml redhat.vscode-yaml
rust-lang.rust-analyzer
tamasfe.even-better-toml tamasfe.even-better-toml
valentjn.vscode-ltex valentjn.vscode-ltex
vscodevim.vim vscodevim.vim

View file

@ -9,6 +9,7 @@
}; };
}; };
sway-unwrapped = inputs.swayfx.packages.${prev.system}.default; sway-unwrapped = inputs.swayfx.packages.${prev.system}.default;
vscode-extensions = inputs.nix-vscode-extensions.extensions.${prev.system};
}; };
hmCommonConfig = {username}: ({ hmCommonConfig = {username}: ({
config, config,