-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix-direnv in the nixos-21.11 channel doesn’t work with flakes #147974
Comments
This is only for nixpkgs. There was also a home-manager module option that needs to be re-introduced: #147998 |
Hi, had the same problem too, just updated and everything is fine, seems like it's fixed now. @reckenrode |
Yes. This was fixed in the linked pull requests. |
I'm using flakes for my configuration and I still exhibit the problem with these fixed inputs: inputs = {
home-manager.url = "github:nix-community/home-manager?ref=release-21.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs?ref=release-21.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixops-plugged.url = "github:lukebfox/nixops-plugged";
flake-utils.url = "github:numtide/flake-utils";
nur.url = "github:nix-community/NUR";
};
Is this expected? Or am I doing something wrong? |
Looks like it was a configuration problem (nix-community/nix-direnv#122). Enabling |
Describe the bug
nix-direnv was updated in #145236 to assume that
nix
is 2.4, but that is no longer true after #147511 was merged. This causes.envrc
files withuse flake
to fail to active thedevShell
.Steps To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/reckenrode/verify-archive.git
(or any project with a flake); andcd verify-archive && direnv allow
.Expected behavior
The
devShell
specified in the flake is activated.Screenshots
Additional context
Overriding
nix
in an overlay withnix_2_4
allows the flake to activate thedevShell
as expected.Notify maintainers
@Mic92
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Maintainer information:
The text was updated successfully, but these errors were encountered: