nix/nixos/hosts/nixos-rpi4-img/default.nix
2024-04-28 21:48:11 +09:00

18 lines
478 B
Nix

{ lib, ... }: {
# Build this image with:
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
# nixpkgs.crossSystem.system = "armv7l-linux";
networking.hostName = "nixos-rpi4-img";
networking.firewall.allowedTCPPorts = [ 22 ];
# Allow passworded ssh for setup
services.openssh = {
enable = true;
openFirewall = false;
settings = {
PermitRootLogin = "no";
PasswordAuthentication = lib.mkForce true;
};
};
}