Files
dotfiles/config/modules/raspberry-pi.nix
T
2026-05-22 15:00:59 +01:00

41 lines
888 B
Nix

{
den,
__findFile,
modules,
inputs,
...
}: {
flake-file.inputs = {
raspberry-pi-nix.url = "github:cmyk/raspberry-pi-nix";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
modules.raspberry-pi = {
provides = {
"5" = {
nixos = {
pkgs,
modulesPath,
...
}: {
imports = [
inputs.nixos-hardware.nixosModules.raspberry-pi-5
"${modulesPath}/installer/sd-card/sd-image-aarch64.nix"
];
environment.systemPackages = with pkgs; [
libraspberrypi
];
sdImage.compressImage = false;
boot.initrd.systemd.tpm2.enable = false;
boot.initrd.allowMissingModules = true;
boot.zfs.forceImportRoot = false;
# hardware.enableRedistributableFirmware = true;
};
};
};
};
}