Skip to content

Commit

Permalink
Enable max-call-depth on macos as well
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Dec 13, 2024
1 parent 3549471 commit fd9e0fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 0 additions & 5 deletions modules/nixos/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,6 @@ in
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
7 changes: 7 additions & 0 deletions modules/nixos/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ let
in
{

nix.settings = {
# 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;
};

nixpkgs = {
# For netdata
config.allowUnfree = true;
Expand Down

0 comments on commit fd9e0fb

Please sign in to comment.