feat(hm/price): use rust nightly
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
This commit is contained in:
parent
1eae026059
commit
89925ecbcb
@ -7,6 +7,10 @@
|
|||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-master.url = "github:nixos/nixpkgs";
|
nixpkgs-master.url = "github:nixos/nixpkgs";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
|
fenix = {
|
||||||
|
url = "github:nix-community/fenix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
lanzaboote = {
|
lanzaboote = {
|
||||||
url = "github:nix-community/lanzaboote";
|
url = "github:nix-community/lanzaboote";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@ -89,6 +93,7 @@
|
|||||||
imports = [ inputs.agenix.homeManagerModules.default ];
|
imports = [ inputs.agenix.homeManagerModules.default ];
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
inputs.emacs-overlay.overlays.default
|
inputs.emacs-overlay.overlays.default
|
||||||
|
inputs.fenix.overlays.default
|
||||||
self.overlays.modifications
|
self.overlays.modifications
|
||||||
self.overlays.additions
|
self.overlays.additions
|
||||||
];
|
];
|
||||||
|
27
users/price/conf/rust/default.nix
Normal file
27
users/price/conf/rust/default.nix
Normal 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
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
@ -68,10 +68,6 @@ in
|
|||||||
Fmt
|
Fmt
|
||||||
screen-cap
|
screen-cap
|
||||||
nodePackages.prettier
|
nodePackages.prettier
|
||||||
cargo
|
|
||||||
clippy
|
|
||||||
rustc
|
|
||||||
rustfmt
|
|
||||||
python3
|
python3
|
||||||
shfmt
|
shfmt
|
||||||
bob-nvim
|
bob-nvim
|
||||||
@ -156,15 +152,12 @@ in
|
|||||||
pkg-config
|
pkg-config
|
||||||
openssl.dev
|
openssl.dev
|
||||||
curl.dev
|
curl.dev
|
||||||
]
|
];
|
||||||
++ [ rust-analyzer ];
|
|
||||||
|
|
||||||
file = softLinkDots ".config";
|
file = softLinkDots ".config";
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
_ZL_DATA = "${config.xdg.cacheHome}/zlua";
|
_ZL_DATA = "${config.xdg.cacheHome}/zlua";
|
||||||
RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
|
|
||||||
CARGO_HOME = "${config.xdg.dataHome}/cargo";
|
|
||||||
OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";
|
OMNISHARPHOME = "${config.xdg.configHome}/omnisharp";
|
||||||
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
|
||||||
TERMINFO_DIRS = "${config.home.profileDirectory}/share/terminfo";
|
TERMINFO_DIRS = "${config.home.profileDirectory}/share/terminfo";
|
||||||
|
Loading…
Reference in New Issue
Block a user