feat(hm/price): use rust nightly
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled

This commit is contained in:
Price Hiller 2024-10-28 16:12:41 -05:00
parent 1eae026059
commit 89925ecbcb
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
3 changed files with 33 additions and 8 deletions

View File

@ -7,6 +7,10 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-master.url = "github:nixos/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
lanzaboote = {
url = "github:nix-community/lanzaboote";
inputs.nixpkgs.follows = "nixpkgs";
@ -89,6 +93,7 @@
imports = [ inputs.agenix.homeManagerModules.default ];
nixpkgs.overlays = [
inputs.emacs-overlay.overlays.default
inputs.fenix.overlays.default
self.overlays.modifications
self.overlays.additions
];

View File

@ -0,0 +1,27 @@
{
config,
pkgs,
...
}:
{
home = {
sessionVariables = {
CARGO_HOME = "${config.xdg.dataHome}/cargo";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
RUST_SRC_PATH = "${pkgs.fenix.complete.rust-src}/lib/rustlib/src/rust/library";
};
packages = with pkgs; [
(pkgs.fenix.complete.withComponents [
"cargo"
"clippy"
"rust-src"
"rustc"
"rustfmt"
])
rust-analyzer-nightly
cargo-watch
cargo-nextest
];
};
}

View File

@ -68,10 +68,6 @@ in
Fmt
screen-cap
nodePackages.prettier
cargo
clippy
rustc
rustfmt
python3
shfmt
bob-nvim
@ -156,15 +152,12 @@ in
pkg-config
openssl.dev
curl.dev
]
++ [ rust-analyzer ];
];
file = softLinkDots ".config";
sessionVariables = {
_ZL_DATA = "${config.xdg.cacheHome}/zlua";
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
CARGO_HOME = "${config.xdg.dataHome}/cargo";
OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
TERMINFO_DIRS = "${config.home.profileDirectory}/share/terminfo";