2023-09-18 04:18:14 +02:00
|
|
|
{ config, lib, pkgs, modulesPath, platform, ... }: {
|
2023-09-18 04:21:09 +02:00
|
|
|
# Build this image with:
|
|
|
|
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
|
2023-09-19 03:49:25 +02:00
|
|
|
nixpkgs.hostPlatform.system = "aarch64-linux";
|
2023-09-19 02:30:44 +02:00
|
|
|
nixpkgs.buildPlatform.system = "x86_64-linux";
|
2023-09-21 04:52:09 +02:00
|
|
|
# nixpkgs.crossSystem.system = "armv7l-linux";
|
2023-09-16 14:32:14 +02:00
|
|
|
networking.hostName = "nixos-rpi4-img";
|
|
|
|
networking.firewall.allowedTCPPorts = [ 22 ];
|
2023-12-13 05:08:29 +01:00
|
|
|
|
|
|
|
# Allow passworded ssh
|
|
|
|
services.openssh = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = false;
|
|
|
|
settings = {
|
|
|
|
PermitRootLogin = "no";
|
2023-12-13 05:11:45 +01:00
|
|
|
PasswordAuthentication = lib.mkForce true;
|
2023-12-13 05:10:46 +01:00
|
|
|
};
|
2023-12-13 05:08:29 +01:00
|
|
|
};
|
2023-09-16 14:32:14 +02:00
|
|
|
}
|