nix/nixos/hosts/nixos-rpi4-img/default.nix

19 lines
478 B
Nix
Raw Normal View History

2024-04-24 10:40:47 +09:00
{ lib, ... }: {
2023-09-18 11:21:09 +09:00
# Build this image with:
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
2023-12-14 21:48:25 +09:00
2023-09-21 11:52:09 +09:00
# nixpkgs.crossSystem.system = "armv7l-linux";
2023-09-16 21:32:14 +09:00
networking.hostName = "nixos-rpi4-img";
networking.firewall.allowedTCPPorts = [ 22 ];
2023-12-13 13:08:29 +09:00
2024-04-28 21:48:11 +09:00
# Allow passworded ssh for setup
2023-12-13 13:08:29 +09:00
services.openssh = {
enable = true;
openFirewall = false;
settings = {
PermitRootLogin = "no";
2023-12-13 13:11:45 +09:00
PasswordAuthentication = lib.mkForce true;
2023-12-13 13:10:46 +09:00
};
2023-12-13 13:08:29 +09:00
};
2024-04-24 10:40:47 +09:00
}