srid / nixos-flake

A flake-parts module to manage NixOS and macOS machines, along with home-manager support, in a unified fashion.
https://community.flake.parts/nixos-flake
MIT License
175 stars 19 forks source link

Can no longer use `--show-trace` with `#activate` #61

Open GGORG0 opened 1 month ago

GGORG0 commented 1 month ago

Hi, previously, with the Nix version of #activate, we were able to provide custom arguments to the function that would be passed on to nixos-rebuild, such as --show-trace. Now, with the Nushell version this is not possible.

Edit: related to https://github.com/srid/nixos-flake/issues/57

srid commented 1 month ago

It is a regression from Nushell rewrite of the activate script which was done to add some features; #56, #60

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.