{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; fenix.url = "github:nix-community/fenix"; fenix.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { nixpkgs, fenix, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; in { formatter.${system} = pkgs.nixpkgs-fmt; devShells.${system}.default = pkgs.mkShell { packages = with pkgs; [ zsh (fenix.packages.${system}.complete.withComponents [ "cargo" "clippy" "rust-src" "rustc" "rustfmt" "rust-analyzer" ]) ]; shellHook = '' zsh & disown exit ''; }; }; }