You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I run nixos-anywhere with --generate-hardware-config nixos-generate-config hardware-configuration.nix, the produced file has CRLF terminators, which I would not normally expect.
$ nix run github:nix-community/nixos-anywhere -- --flake '.#<hostname>' root@<hostname> --generate-hardware-config nixos-generate-config hardware-configuration.nix --phases "kexec"
$ file hardware-configuration.nix
hardware-configuration.nix: Unicode text, UTF-8 text, with CRLF line terminators
While it is certainly not a big issue (Nix doesn't care about line termination) and I can easily work around it, it is surprising and causes large diffs if I compare the file to a previous version I had generated not with nixos-anywhere.
I've tracked the issue down to the usage of -t in the ssh options:
If I run
nixos-anywhere
with--generate-hardware-config nixos-generate-config hardware-configuration.nix
, the produced file has CRLF terminators, which I would not normally expect.While it is certainly not a big issue (Nix doesn't care about line termination) and I can easily work around it, it is surprising and causes large diffs if I compare the file to a previous version I had generated not with nixos-anywhere.
I've tracked the issue down to the usage of
-t
in the ssh options:The text was updated successfully, but these errors were encountered: