Open bbarker opened 5 years ago
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Issue description
This started as trying to understand why my NixOS images weren't getting the authorized key for ssh set at all. It appears the user data of interest should be contained in
obj.pkl
(see directory structure). On Ubuntu, this appears to be a binary file format, but on NixOS it appears to be text. However, unlike on ubuntu, it clearly contains different information, and it clearly does not include an ssh-rsa public key (which it does on ubuntu: search for 'ssh-rsa' in the file).Steps to reproduce
Here is the relevant bit of my configuration.nix:
I tried to largely model the ssh bits after my Ubuntu config (which is working - note: I didn't set up cloud-init on my Ubuntu image). Here is the Ubuntu
cloud.cfg
for completeness:You should be able to test this out on any system with cloud init installed on a cloud where the cloud-init server IP on the cloud controller is 169.254.169.254 (this is standard).
Technical details
"x86_64-linux"
Linux 4.14.79, NixOS, 18.03.133361.21b7f59ae12 (Impala)
yes
no
nix-env (Nix) 2.0.4
""
"nixos-18.03.133361.21b7f59ae12"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs