Creating a NixOS live CD: Difference between revisions
imported>HLandau No edit summary |
imported>Sh4r3m4n Fix SSH configuration typo (it produced a syntax error) |
||
| Line 45: | Line 45: | ||
# Enable SSH in the boot process. | # Enable SSH in the boot process. | ||
systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ]; | systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ]; | ||
users.users.root.openssh.authorizedKeys.keys [ | users.users.root.openssh.authorizedKeys.keys = [ | ||
"ssh-ed25519 AaAeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee username@host" | "ssh-ed25519 AaAeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee username@host" | ||
]; | ]; | ||