nix/nixos/hosts/nixos-rpi4-img/default.nix
2023-12-14 21:48:25 +09:00

19 lines
No EOL
553 B
Nix

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