Skip to content

Instantly share code, notes, and snippets.

@rngadam
Created February 18, 2025 15:46
Show Gist options
  • Select an option

  • Save rngadam/2c3f88d22f81c12171de8ba355edeb0c to your computer and use it in GitHub Desktop.

Select an option

Save rngadam/2c3f88d22f81c12171de8ba355edeb0c to your computer and use it in GitHub Desktop.
outputs.nixosConfigurations.nixos02.config.services.postgresql.dataDir
nix-repl> outputs.nixosConfigurations.nixos02.config.services.postgresql.dataDir
error:
       … while evaluating the attribute 'value'
         at /nix/store/5bni29qxcvbqygs8asgzd7gf5vvrs6ay-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;

       … while evaluating the option `services.postgresql.dataDir':

       … while evaluating the attribute 'mergedValue'
         at /nix/store/5bni29qxcvbqygs8asgzd7gf5vvrs6ay-source/lib/modules.nix:851:5:
          850|     # Type-check the remaining definitions, and merge them. Or throw if no definitions.
          851|     mergedValue =
             |     ^
          852|       if isDefined then

       … while evaluating definitions from `/nix/store/2d0n8mllhmaxfz13mal74wdz18nk08s6-source/peertube.nix':

       … while evaluating the option `users.users.postgres.home':

       … while evaluating definitions from `/nix/store/5bni29qxcvbqygs8asgzd7gf5vvrs6ay-source/nixos/modules/services/databases/postgresql.nix':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: infinite recursion encountered
       at /nix/store/5bni29qxcvbqygs8asgzd7gf5vvrs6ay-source/lib/modules.nix:816:9:
          815|     in warnDeprecation opt //
          816|       { value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          817|         inherit (res.defsFinal') highestPrio;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment