24 lines
710 B
Nix
24 lines
710 B
Nix
{ lib, ... }: {
|
|
imports = [ <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix> ];
|
|
|
|
# Add SSH key
|
|
users.extraUsers.root.openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFRqINHR7/zc+c3/PuR+NeSsBHXXzBiEtFWSK6QaxQTW coolneng@panacea"
|
|
];
|
|
users.extraUsers.nixos = {
|
|
isNormalUser = true;
|
|
extraGroups = [ "wheel" ];
|
|
openssh.authorizedKeys.keys = [
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFRqINHR7/zc+c3/PuR+NeSsBHXXzBiEtFWSK6QaxQTW coolneng@panacea"
|
|
];
|
|
};
|
|
|
|
# Increase /boot partition size
|
|
sdImage.firmwareSize = 256;
|
|
|
|
# Enable SSH
|
|
services.sshd.enable = true;
|
|
systemd.services.sshd.wantedBy = lib.mkOverride 40 [ "multi-user.target" ];
|
|
|
|
}
|