This commit is contained in:
2026-05-21 15:55:43 +01:00
parent 212af403dc
commit 140f47649c
3 changed files with 25 additions and 7 deletions
+7 -7
View File
@@ -7,16 +7,15 @@
}: {
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, ...}: let
rpi-pi = inputs.raspberry-pi-nix;
in {
nixos = {pkgs, modulesPath, ...}: {
imports = [
rpi-pi.nixosModules.raspberry-pi
rpi-pi.nixosModules.sd-image
inputs.nixos-hardware.nixosModules.raspberry-pi-5
"${modulesPath}/installer/sd-card/sd-image-aarch64.nix"
];
environment.systemPackages = with pkgs; [
@@ -24,10 +23,11 @@
];
sdImage.compressImage = false;
raspberry-pi-nix.board = "bcm2712"; # Rpi 5 - 64bit
# raspberry-pi-nix.board = "bcm2712"; # Rpi 5 - 64bit
# We need to rebuild kernel for 6.12
# raspberry-pi-nix.kernel-version = "v6_12_17";
raspberry-pi-nix.uboot.enable = false;
# raspberry-pi-nix.uboot.enable = false;
boot.initrd.systemd.enableTpm2 = false;
hardware.enableRedistributableFirmware = true;
};