nixos-generators
nixos-generators copied to clipboard
The `resize` script in `vm-nogui` breaks `claude-code`
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.