Add files via upload

This commit is contained in:
kaii :3 (notquitek3t)
2026-03-08 06:59:57 +00:00
committed by GitHub
parent dfc11908a4
commit 9cadcac26b
10 changed files with 604 additions and 0 deletions
+41
View File
@@ -0,0 +1,41 @@
{ pkgs, ... }: {
boot.initrd.allowMissingModules = true;
boot.supportedFilesystems.zfs = false;
boot.kernelPackages = pkgs.linuxPackages_rpi4;
fileSystems = {
"/" = { device = "/dev/disk/by-label/NIXOS_SD"; fsType = "ext4"; };
};
# Pi 4 specific
hardware = {
raspberry-pi."4" = {
apply-overlays-dtmerge.enable = true;
bluetooth.enable = true;
};
enableRedistributableFirmware = true;
};
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
console.enable = false;
environment.systemPackages = with pkgs; [
libraspberrypi
raspberrypi-eeprom
];
# ssh so you can manage them remotely
services.openssh = {
enable = true;
settings.PasswordAuthentication = true;
};
# auto upgrade on pis can reboot unattended
system.autoUpgrade = {
operation = "boot";
allowReboot = true;
rebootWindow = { lower = "02:00"; upper = "05:00"; };
};
}