Skip to content

Commit

Permalink
nix: Increase max-call-depth to fix stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Nov 20, 2024
1 parent 4eeb01f commit 6508639
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/nixos/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ in
registry.nixpkgs.flake = flake.inputs.nixpkgs; # Make `nix shell` etc use pinned nixpkgs
settings = {
max-jobs = "auto";

# To workaround "stack overflow; max-call-depth exceeded" error from latest Nix when building nammayatri:
# https://github.com/NixOS/nix/issues/9627
# https://github.com/nix-community/robotnix/issues/224
max-call-depth = 10000000;

experimental-features = "nix-command flakes";
# Nullify the registry for purity.
flake-registry = builtins.toFile "empty-flake-registry.json" ''{"flakes":[],"version":2}'';
Expand Down

0 comments on commit 6508639

Please sign in to comment.