Skip to content

Conversation

plarson
Copy link
Contributor

@plarson plarson commented Apr 27, 2025

extraNixArgs is useful for passing —show-trace to rebuild like:

nixos-unified.extraNixArgs = [
  "--show-trace"
];

Should resolve #61

extraNixArgs is useful for passing ‘—show-trace’ to rebuild like:

```
  nixos-unified.extraNixArgs = [
    "--show-trace"
  ];
```
Copy link
Owner

@srid srid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#61 is about allowing command-line options rather than adding a new module option (which this PR does). From #61 (comment)

More generally, we should make the new activate script take arbitrary arguments from the user and pass them nixos-rebuild, darwin-rebuild or home-manager switch as appropriate.

What is the value of the module option? Supporting extra command line arguments is clearly valuable because the user can enable these things right off on the CLI without needing to modify the Nix file each time.

@plarson
Copy link
Contributor Author

plarson commented May 2, 2025

I see, the CLI option would work as well. For my case I ended up just leaving show trace on all the time since it only affects the output when there is an error and it's always more helpful than the no trace version for debugging.

@plarson plarson closed this May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can no longer use --show-trace with #activate
2 participants