pin vscode rustanalyzer
This commit is contained in:
parent
f386acd94d
commit
95310bbcee
3 changed files with 198 additions and 183 deletions
17
flake.lock
17
flake.lock
|
@ -366,6 +366,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-rust-analyzer": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1675198550,
|
||||||
|
"narHash": "sha256-LWUqaWNDvHvfsruLk27u8uMo0lT4w7Gzl/zFOIr27HE=",
|
||||||
|
"owner": "cyplo",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "85b5540187b50ef99a14a39a5437fd0abb9f3e4b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cyplo",
|
||||||
|
"ref": "85b5540187b50ef99a14a39a5437fd0abb9f3e4b",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-stable": {
|
"nixpkgs-stable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1674407282,
|
"lastModified": 1674407282,
|
||||||
|
@ -410,6 +426,7 @@
|
||||||
"nixos-hardware": "nixos-hardware",
|
"nixos-hardware": "nixos-hardware",
|
||||||
"nixpkgs-master": "nixpkgs-master",
|
"nixpkgs-master": "nixpkgs-master",
|
||||||
"nixpkgs-nixos-unstable": "nixpkgs-nixos-unstable",
|
"nixpkgs-nixos-unstable": "nixpkgs-nixos-unstable",
|
||||||
|
"nixpkgs-rust-analyzer": "nixpkgs-rust-analyzer",
|
||||||
"nixpkgs-stable": "nixpkgs-stable",
|
"nixpkgs-stable": "nixpkgs-stable",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
"sops": "sops"
|
"sops": "sops"
|
||||||
|
|
44
flake.nix
44
flake.nix
|
@ -1,21 +1,10 @@
|
||||||
{
|
{
|
||||||
description = "NixOS configuration with flakes";
|
description = "NixOS configuration with flakes";
|
||||||
outputs = {
|
outputs = { self, flake-utils, flake-compat, home-manager
|
||||||
self,
|
, nixpkgs-nixos-unstable, nixpkgs-master, nixpkgs-stable, darwin
|
||||||
flake-utils,
|
, nixos-hardware, nur, sops, nil, helix, alejandra, nixpkgs-rust-analyzer
|
||||||
flake-compat,
|
}@inputs:
|
||||||
home-manager,
|
let
|
||||||
nixpkgs-nixos-unstable,
|
|
||||||
nixpkgs-master,
|
|
||||||
nixpkgs-stable,
|
|
||||||
darwin,
|
|
||||||
nixos-hardware,
|
|
||||||
nur,
|
|
||||||
sops,
|
|
||||||
nil,
|
|
||||||
helix,
|
|
||||||
alejandra,
|
|
||||||
} @ inputs: let
|
|
||||||
mkServer = pkgs: system: hostname:
|
mkServer = pkgs: system: hostname:
|
||||||
pkgs.lib.nixosSystem {
|
pkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
|
@ -45,7 +34,8 @@
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.cyryl = {
|
home-manager.users.cyryl = {
|
||||||
imports = [./nixos/home-manager ./nixos/home-manager/linux.nix];
|
imports =
|
||||||
|
[ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
||||||
_module.args.inputs = inputs;
|
_module.args.inputs = inputs;
|
||||||
_module.args.system = system;
|
_module.args.system = system;
|
||||||
};
|
};
|
||||||
|
@ -77,7 +67,8 @@
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.useUserPackages = true;
|
home-manager.useUserPackages = true;
|
||||||
home-manager.users.cyryl = {
|
home-manager.users.cyryl = {
|
||||||
imports = [./nixos/home-manager ./nixos/home-manager/linux.nix];
|
imports =
|
||||||
|
[ ./nixos/home-manager ./nixos/home-manager/linux.nix ];
|
||||||
_module.args.inputs = inputs;
|
_module.args.inputs = inputs;
|
||||||
_module.args.system = system;
|
_module.args.system = system;
|
||||||
};
|
};
|
||||||
|
@ -95,10 +86,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mkShell = packageSet: system: let
|
mkShell = packageSet: system:
|
||||||
pkgs = packageSet.legacyPackages.${system};
|
let pkgs = packageSet.legacyPackages.${system};
|
||||||
in
|
in pkgs.mkShell {
|
||||||
pkgs.mkShell {
|
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
cacert
|
cacert
|
||||||
git
|
git
|
||||||
|
@ -163,7 +153,8 @@
|
||||||
(import
|
(import
|
||||||
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix")
|
"${inputs.nixpkgs-nixos-unstable}/nixos/modules/installer/sd-card/sd-image-aarch64-installer.nix")
|
||||||
{
|
{
|
||||||
environment.systemPackages = with nixpkgs-nixos-unstable.legacyPackages."aarch64-linux"; [
|
environment.systemPackages =
|
||||||
|
with nixpkgs-nixos-unstable.legacyPackages."aarch64-linux"; [
|
||||||
neovim
|
neovim
|
||||||
htop
|
htop
|
||||||
btop
|
btop
|
||||||
|
@ -221,6 +212,13 @@
|
||||||
ref = "nixos-22.11";
|
ref = "nixos-22.11";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixpkgs-rust-analyzer = {
|
||||||
|
type = "github";
|
||||||
|
owner = "cyplo";
|
||||||
|
repo = "nixpkgs";
|
||||||
|
ref = "85b5540187b50ef99a14a39a5437fd0abb9f3e4b";
|
||||||
|
};
|
||||||
|
|
||||||
nixos-hardware = {
|
nixos-hardware = {
|
||||||
type = "github";
|
type = "github";
|
||||||
owner = "NixOS";
|
owner = "NixOS";
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
{ config, pkgs, ... }: {
|
{ config, pkgs, inputs, ... }: {
|
||||||
home.packages = with pkgs;
|
home.packages = with pkgs;
|
||||||
[
|
[
|
||||||
(vscode-with-extensions.override {
|
(vscode-with-extensions.override {
|
||||||
vscodeExtensions = with vscode-extensions;
|
vscodeExtensions = with vscode-extensions;
|
||||||
[
|
[
|
||||||
ms-python.python
|
ms-python.python
|
||||||
rust-lang.rust-analyzer
|
inputs.nixpkgs-rust-analyzer.legacyPackages.x86_64-linux.vscode-extensions.rust-lang.rust-analyzer
|
||||||
(vscode-utils.buildVscodeExtension {
|
(vscode-utils.buildVscodeExtension {
|
||||||
vscodeExtUniqueId = "vadimcn.vscode-lldb";
|
vscodeExtUniqueId = "vadimcn.vscode-lldb";
|
||||||
name = "vadimcn.vscode-lldb-1.6.10";
|
name = "vadimcn.vscode-lldb-1.6.10";
|
||||||
|
|
Loading…
Reference in a new issue