diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 2c6df15..780513f 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -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 diff --git a/nixos/flake.nix b/nixos/flake.nix index 75f622b..116a686 100644 --- a/nixos/flake.nix +++ b/nixos/flake.nix @@ -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) ]; - }) ]; }; };