diff --git a/flake.lock b/flake.lock index 542dcf2..1692eef 100644 --- a/flake.lock +++ b/flake.lock @@ -570,7 +570,28 @@ "hyprcursor-phinger": "hyprcursor-phinger", "hyprland": "hyprland", "nixpkgs": "nixpkgs_3", - "nixvim": "nixvim" + "nixvim": "nixvim", + "rust-overlay": "rust-overlay" + } + }, + "rust-overlay": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1767062690, + "narHash": "sha256-hfKAOJQYbR0mlwabV56tOlEMUgESRroHqlDpX0hwOpU=", + "owner": "oxalica", + "repo": "rust-overlay", + "rev": "943d2d0bf1b86267287aff826ebd1138d83113b7", + "type": "github" + }, + "original": { + "owner": "oxalica", + "repo": "rust-overlay", + "type": "github" } }, "systems": { diff --git a/flake.nix b/flake.nix index 1d0c308..547cd50 100644 --- a/flake.nix +++ b/flake.nix @@ -18,6 +18,10 @@ url = "github:nix-community/nixvim"; inputs.nixpkgs.follows = "nixpkgs"; }; + rust-overlay = { + url = "github:oxalica/rust-overlay"; + inputs.nixpkgs.follows = "nixpkgs"; + }; _1password-shell-plugins.url = "github:1Password/shell-plugins"; }; @@ -28,6 +32,7 @@ hyprcursor-phinger, hyprland, nixvim, + rust-overlay, ... }: let @@ -41,6 +46,13 @@ inherit system; modules = [ ./configuration.nix + ( + { pkgs, ... }: + { + nixpkgs.overlays = [ rust-overlay.overlays.default ]; + environment.systemPackages = [ pkgs.rust-bin.stable.latest.default ]; + } + ) ]; specialArgs = { inherit hyprland; }; }; diff --git a/home.nix b/home.nix index 545a620..0e81d49 100644 --- a/home.nix +++ b/home.nix @@ -39,8 +39,6 @@ ]; home.packages = with pkgs; [ - cargo-deny - cargo-expand dig glibcInfo imagemagick @@ -48,7 +46,6 @@ man-pages-posix nixd prismlauncher - rustup thunderbird tree zathura