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

8 lines
350 B
Nix
Raw Normal View History

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-17 02:23:11 +02:00
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
2023-09-18 04:18:14 +02:00
nixpkgs.buildPlatform.system = $platform;
2023-09-16 14:32:14 +02:00
networking.hostName = "nixos-rpi4-img";
networking.firewall.allowedTCPPorts = [ 22 ];
}