Creating a NixOS live CD: Difference between revisions
imported>Fadenb Created page with "== motivation == creating a modified NIXOS live CD out of a working nixos installation gives you the benefits: * verify what is included * no need to download it * it is easy..." |
imported>Makefu remove old code |
||
Line 1: | Line 1: | ||
== motivation == | == motivation == | ||
creating a modified NIXOS live CD out of a working nixos installation gives you the benefits: | creating a modified NIXOS live CD out of a working nixos installation gives you the benefits: | ||
Line 37: | Line 38: | ||
} | } | ||
=== | === Start SSH with your SSH key | ||
In your configuration.nix: | |||
<code> | |||
services.openssh = { | |||
enable = true; | |||
hostKeys = [ | |||
{ bits = 8192; type = "ed25519"; path = "/etc/ssh/ssh_host_ed25519_key"; } | |||
]; | |||
}; | |||
# enable ssh in the iso boot process | |||
systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ]; | |||
users.users.root.openssh.authorizedKeys.keys [ | |||
"ssh-rsa AAAAB3NzaC1y...== me@my-laptop" | |||
]; | |||
</code> | |||
== software installation inside the 'once' deployed and booted image == | == software installation inside the 'once' deployed and booted image == | ||
in case you have booted from your image you can add software as described here: | in case you have booted from your image you can add software as described here: | ||
* [[install/remove software]] | * [[install/remove software]] | ||
== references == | == references == | ||
Line 68: | Line 67: | ||
[[Category:Installation]] | [[Category:Installation]] | ||
[[Category:Deployment]] | [[Category:Deployment]] | ||
[[Category:HOW-TO]] |