diff --git a/flake.nix b/flake.nix index fa817eed..e79dd498 100644 --- a/flake.nix +++ b/flake.nix @@ -35,5 +35,10 @@ nix-gaming.url = "github:fufexan/nix-gaming"; nur.url = "github:nix-community/NUR"; + + fenix = { + url = "github:nix-community/fenix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; } diff --git a/homes/jacek/default.nix b/homes/jacek/default.nix index 9ba1367e..03ab27f2 100644 --- a/homes/jacek/default.nix +++ b/homes/jacek/default.nix @@ -31,6 +31,7 @@ hyprcontrib = inputs.hyprcontrib.packages.${pkgs.system}; shadower = inputs.shadower.packages.${pkgs.system}; nix-gaming = inputs.nix-gaming.packages.${pkgs.system}; + fenix = inputs.fenix.packages.${pkgs.system}; in with pkgs; [ git librewolf-wayland @@ -83,8 +84,6 @@ ventoy-full zathura zellij - cargo - rustc nodejs unzip cmake @@ -139,6 +138,13 @@ udisks ffmpeg xdg-desktop-portal-gtk + (fenix.complete.withComponents [ + "cargo" + "clippy" + "rust-src" + "rustc" + "rustfmt" + ]) ]; stateVersion = lib.mkDefault "23.11";