nixos-generators icon indicating copy to clipboard operation
nixos-generators copied to clipboard

The `resize` script in `vm-nogui` breaks `claude-code`

Open aldur opened this issue 2 months ago • 2 comments

Hello there and thanks for this project! :)

I spent a couple hours debugging this issue the other day. I think the issue is that the resize script:

https://github.com/nix-community/nixos-generators/blob/fb30cf1cbebe3f5100dbd605138b2eec44ad217f/formats/vm-nogui.nix#L2-L11

I think the issue is that the script runs for both interactive and non-interactive sessions. Also, it shouldn't need to run eg when through SSH, but it does because it is sourced in /etc/profile.

aldur avatar Oct 03 '25 07:10 aldur