mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00
optimized rust-toolchain
config in nix
This commit is contained in:
@@ -432,7 +432,9 @@
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
# Apply the overlay to the package set
|
||||
# nixpkgs.overlays = [ spotifyOverlay ];
|
||||
nixpkgs.overlays = [
|
||||
inputs.rust-overlay.overlays.default
|
||||
];
|
||||
|
||||
# Override packages
|
||||
nixpkgs.config.packageOverrides = pkgs: {
|
||||
@@ -479,6 +481,7 @@
|
||||
nil
|
||||
zls
|
||||
|
||||
(rust-bin.fromRustupToolchainFile ./rust-toolchain.toml)
|
||||
evcxr #rust repl
|
||||
taplo #toml formatter & lsp
|
||||
cargo-deny
|
||||
|
@@ -7,16 +7,12 @@
|
||||
hyprland.url = "github:hyprwm/Hyprland";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, rust-overlay, ... } @ inputs:
|
||||
outputs = { nixpkgs, ... } @ inputs:
|
||||
{
|
||||
nixosConfigurations.isitreal-laptop = nixpkgs.lib.nixosSystem {
|
||||
specialArgs = { inherit inputs; };
|
||||
modules = [
|
||||
./configuration.nix
|
||||
({ pkgs, ... }: {
|
||||
nixpkgs.overlays = [ rust-overlay.overlays.default ];
|
||||
environment.systemPackages = [ (pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml) ];
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user