2022-07-12 17:20:18 +02:00
|
|
|
{ lib, ... }: {
|
|
|
|
imports = [ <nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix> ];
|
2022-07-12 16:39:43 +02:00
|
|
|
|
|
|
|
# Add SSH key
|
|
|
|
users.extraUsers.root.openssh.authorizedKeys.keys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFRqINHR7/zc+c3/PuR+NeSsBHXXzBiEtFWSK6QaxQTW coolneng@panacea"
|
|
|
|
];
|
|
|
|
users.extraUsers.nixos = {
|
|
|
|
isNormalUser = true;
|
2022-07-12 19:30:14 +02:00
|
|
|
extraGroups = [ "wheel" ];
|
2022-07-12 16:39:43 +02:00
|
|
|
openssh.authorizedKeys.keys = [
|
2022-07-12 17:20:18 +02:00
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFRqINHR7/zc+c3/PuR+NeSsBHXXzBiEtFWSK6QaxQTW coolneng@panacea"
|
2022-07-12 16:39:43 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Increase /boot partition size
|
2022-11-14 19:40:04 +01:00
|
|
|
sdImage.firmwareSize = 1024;
|
2022-07-12 17:20:18 +02:00
|
|
|
|
|
|
|
# Enable SSH
|
|
|
|
services.sshd.enable = true;
|
|
|
|
systemd.services.sshd.wantedBy = lib.mkOverride 40 [ "multi-user.target" ];
|
|
|
|
|
2022-07-12 16:39:43 +02:00
|
|
|
}
|