Enable SSH
This commit is contained in:
parent
7f81be1bb3
commit
fde0f83c00
11
sd-image.nix
11
sd-image.nix
|
@ -1,7 +1,5 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
||||
];
|
||||
{ lib, ... }: {
|
||||
imports = [ <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix> ];
|
||||
|
||||
# Add SSH key
|
||||
users.extraUsers.root.openssh.authorizedKeys.keys = [
|
||||
|
@ -16,4 +14,9 @@
|
|||
|
||||
# Increase /boot partition size
|
||||
sdImage.firmwareSize = 256;
|
||||
|
||||
# Enable SSH
|
||||
services.sshd.enable = true;
|
||||
systemd.services.sshd.wantedBy = lib.mkOverride 40 [ "multi-user.target" ];
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue