Inconsistent behaviour when accessing self.lib
in different places
#482
Labels
bug
Something isn't working
self.lib
in different places
#482
Expected Behavior
Accessing
self.lib
should not throw infinite recursion.Current Behavior
In
flake.nix
, withand
nixos.nix
refer to a function made inlib.nix
viaself.lib
, it throws infinite recursion.This is not the case for
home.nix
through, and I created a repo to reproduce.Possible Solution
As a workaround, specify
self
explicitly when importingnixos.nix
, e.gSteps to Reproduce
nixos-rebuild switch --flake .#NixOS
Try comment out line 9 of
nixos.nix
and see the difference.The text was updated successfully, but these errors were encountered: