# SD Card image configuration for Raspberry Pi { config, modulesPath, lib, ... }: { imports = [ (modulesPath + "/installer/sd-card/sd-image-aarch64.nix") ]; sdImage = { # Compress with zstd for smaller download compressImage = true; # Auto-expand root partition on first boot expandOnBoot = true; }; # Image filename based on hostname image.fileName = "${config.networking.hostName}-sd-image.img"; # Disable ZFS to avoid build issues on SD image boot.supportedFilesystems = lib.mkForce [ "vfat" "ext4" ]; }