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

9 lines
395 B
Nix
Raw Normal View History

2023-09-18 11:18:14 +09:00
{ config, lib, pkgs, modulesPath, platform, ... }: {
2023-09-18 11:21:09 +09:00
# Build this image with:
# nix build .#nixosConfigurations.nixos-rpi4-img.config.system.build.sdImage
2023-09-19 10:49:25 +09:00
nixpkgs.hostPlatform.system = "aarch64-linux";
2023-09-19 09:30:44 +09:00
nixpkgs.buildPlatform.system = "x86_64-linux";
2023-09-19 10:54:33 +09:00
nixpkgs.crossSystem.system = "armv7l-linux";
2023-09-16 21:32:14 +09:00
networking.hostName = "nixos-rpi4-img";
networking.firewall.allowedTCPPorts = [ 22 ];
}