Creating a NixOS live CD: Difference between revisions
imported>Sh4r3m4n Fix SSH configuration typo (it produced a syntax error) |
imported>Sh4r3m4n Make building and SSH sections compatible (prefix pkgs. because there is no with clause) |
||
| Line 44: | Line 44: | ||
... | ... | ||
# 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 = pkgs.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" | ||