forked from foxora/nix
actually fixed rust-analyzer this time
This commit is contained in:
parent
8a44655415
commit
1776e1d58d
3 changed files with 80 additions and 15 deletions
60
flake.lock
generated
60
flake.lock
generated
|
|
@ -227,12 +227,33 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fenix": {
|
"fenix": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs-unstable"
|
||||||
|
],
|
||||||
|
"rust-analyzer-src": "rust-analyzer-src"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1777796307,
|
||||||
|
"narHash": "sha256-L7xLjorTwVf2aLu5b0ZZY2D0RFXwD/a/a/fFFDikB2w=",
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "fenix",
|
||||||
|
"rev": "0f9881f2344c0b1c100bd9e774555759b7da6fd5",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "nix-community",
|
||||||
|
"repo": "fenix",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"fenix_2": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"iamb",
|
"iamb",
|
||||||
"nixpkgs"
|
"nixpkgs"
|
||||||
],
|
],
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
"rust-analyzer-src": "rust-analyzer-src_2"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1760510549,
|
"lastModified": 1760510549,
|
||||||
|
|
@ -890,7 +911,7 @@
|
||||||
"iamb": {
|
"iamb": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"crane": "crane",
|
"crane": "crane",
|
||||||
"fenix": "fenix",
|
"fenix": "fenix_2",
|
||||||
"flake-utils": "flake-utils",
|
"flake-utils": "flake-utils",
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
"nixpkgs-unstable"
|
"nixpkgs-unstable"
|
||||||
|
|
@ -1364,6 +1385,22 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"nixpkgs-rust": {
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1776371872,
|
||||||
|
"narHash": "sha256-hVIxbmDzNoXnzobtujvL189+YPrqr0QWF5fn+13+CtY=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "838f1611dc4c0078432071819d6fffe046148813",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "838f1611dc4c0078432071819d6fffe046148813",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"nixpkgs-staging": {
|
"nixpkgs-staging": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1777791170,
|
"lastModified": 1777791170,
|
||||||
|
|
@ -1493,6 +1530,7 @@
|
||||||
"awww": "awww",
|
"awww": "awww",
|
||||||
"cachyos": "cachyos",
|
"cachyos": "cachyos",
|
||||||
"cerulean": "cerulean",
|
"cerulean": "cerulean",
|
||||||
|
"fenix": "fenix",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"home-manager-unstable": "home-manager-unstable",
|
"home-manager-unstable": "home-manager-unstable",
|
||||||
"hyprland-git": "hyprland-git",
|
"hyprland-git": "hyprland-git",
|
||||||
|
|
@ -1505,6 +1543,7 @@
|
||||||
"nixcord": "nixcord",
|
"nixcord": "nixcord",
|
||||||
"nixpkgs": "nixpkgs_3",
|
"nixpkgs": "nixpkgs_3",
|
||||||
"nixpkgs-master": "nixpkgs-master",
|
"nixpkgs-master": "nixpkgs-master",
|
||||||
|
"nixpkgs-rust": "nixpkgs-rust",
|
||||||
"nixpkgs-staging": "nixpkgs-staging",
|
"nixpkgs-staging": "nixpkgs-staging",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"sddm-silent": "sddm-silent",
|
"sddm-silent": "sddm-silent",
|
||||||
|
|
@ -1514,6 +1553,23 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
"rust-analyzer-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1777768857,
|
||||||
|
"narHash": "sha256-zfekJcaVctfAps1KDHwZpwkvAQn7GObRHh3Gl3xocGI=",
|
||||||
|
"owner": "rust-lang",
|
||||||
|
"repo": "rust-analyzer",
|
||||||
|
"rev": "1102c0b633599564919e36076d4362d7e68dbddc",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "rust-lang",
|
||||||
|
"ref": "nightly",
|
||||||
|
"repo": "rust-analyzer",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"rust-analyzer-src_2": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1760457219,
|
"lastModified": 1760457219,
|
||||||
|
|
|
||||||
18
flake.nix
18
flake.nix
|
|
@ -9,6 +9,9 @@
|
||||||
nixpkgs-staging.url = "github:NixOS/nixpkgs/staging-next";
|
nixpkgs-staging.url = "github:NixOS/nixpkgs/staging-next";
|
||||||
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
|
nixpkgs-master.url = "github:NixOS/nixpkgs/master";
|
||||||
|
|
||||||
|
# currently a regression: https://github.com/rust-lang/rust-analyzer/pull/22207
|
||||||
|
nixpkgs-rust.url = "github:NixOS/nixpkgs/838f1611dc4c0078432071819d6fffe046148813";
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
url = "github:nix-community/home-manager/release-25.11";
|
url = "github:nix-community/home-manager/release-25.11";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -52,6 +55,11 @@
|
||||||
|
|
||||||
nixcats.url = "github:BirdeeHub/nixCats-nvim";
|
nixcats.url = "github:BirdeeHub/nixCats-nvim";
|
||||||
|
|
||||||
|
fenix = {
|
||||||
|
url = "github:nix-community/fenix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
};
|
||||||
|
|
||||||
awww = {
|
awww = {
|
||||||
url = "git+https://codeberg.org/LGFae/awww";
|
url = "git+https://codeberg.org/LGFae/awww";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
|
|
@ -85,14 +93,14 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# temp theme until i bother creating my own </3
|
mcsr = {
|
||||||
sddm-silent = {
|
url = "https://git.uku3lig.net/uku/mcsr-nixos/archive/main.tar.gz";
|
||||||
url = "github:uiriansan/SilentSDDM";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
|
|
||||||
mcsr = {
|
# temp theme until i bother creating my own </3
|
||||||
url = "https://git.uku3lig.net/uku/mcsr-nixos/archive/main.tar.gz";
|
sddm-silent = {
|
||||||
|
url = "github:uiriansan/SilentSDDM";
|
||||||
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,6 @@
|
||||||
# TODO: look into changing to this:
|
# TODO: look into changing to this:
|
||||||
# https://github.com/BirdeeHub/nix-wrapper-modules
|
# https://github.com/BirdeeHub/nix-wrapper-modules
|
||||||
{
|
{inputs, ...}: let
|
||||||
inputs,
|
|
||||||
upkgs,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit
|
inherit
|
||||||
(inputs.nixcats)
|
(inputs.nixcats)
|
||||||
utils
|
utils
|
||||||
|
|
@ -62,11 +58,16 @@ in {
|
||||||
docs = [nix-doc]; # TODO: i forgot how to integrate this into neovim
|
docs = [nix-doc]; # TODO: i forgot how to integrate this into neovim
|
||||||
};
|
};
|
||||||
rust = {
|
rust = {
|
||||||
lsp = [cargo upkgs.rust-analyzer];
|
lsp = [
|
||||||
|
cargo
|
||||||
|
# !!!!!!!!! remember to change environment variable !!!!!!!!!!!!
|
||||||
|
# currently a regression: https://github.com/rust-lang/rust-analyzer/pull/22207
|
||||||
|
inputs.nixpkgs-rust.legacyPackages.${system}.rust-analyzer
|
||||||
|
];
|
||||||
# nightly rustfmt has nicer features :3
|
# nightly rustfmt has nicer features :3
|
||||||
format = [(rustfmt.override {asNightly = true;})];
|
format = [(rustfmt.override {asNightly = true;})];
|
||||||
formatters = {
|
formatters = {
|
||||||
leptos = [leptosfmt];
|
leptos = [leptosfmt];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
zig = {
|
zig = {
|
||||||
|
|
@ -197,7 +198,7 @@ in {
|
||||||
rust.lsp = {
|
rust.lsp = {
|
||||||
# it literally won't see the rust-analyzer provided to it
|
# it literally won't see the rust-analyzer provided to it
|
||||||
# if you don't use an envrionment variable to tell it
|
# if you don't use an envrionment variable to tell it
|
||||||
RUST_ANALYZER_CMD = "${upkgs.rust-analyzer}/bin/rust-analyzer";
|
RUST_ANALYZER_CMD = "${inputs.nixpkgs-rust.legacyPackages.${pkgs.system}.rust-analyzer}/bin/rust-analyzer";
|
||||||
};
|
};
|
||||||
elixir.lsp = {
|
elixir.lsp = {
|
||||||
ELIXIR_LS_CMD = "${pkgs.elixir-ls}/scripts/language_server.sh";
|
ELIXIR_LS_CMD = "${pkgs.elixir-ls}/scripts/language_server.sh";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue