mirror of
https://github.com/itme-brain/nixos.git
synced 2026-05-08 14:50:12 -04:00
added tv
This commit is contained in:
parent
35dc868264
commit
99c1e0a4fc
6 changed files with 232 additions and 0 deletions
39
system/machines/tv/hardware.nix
Normal file
39
system/machines/tv/hardware.nix
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||
|
||||
boot = {
|
||||
initrd = {
|
||||
availableKernelModules = [ "xhci_pci" "usbhid" ];
|
||||
kernelModules = [ ];
|
||||
};
|
||||
kernelModules = [ ];
|
||||
extraModulePackages = [ ];
|
||||
|
||||
# Pi boots via extlinux from the Hydra SD image — not GRUB/systemd-boot
|
||||
loader = {
|
||||
grub.enable = false;
|
||||
generic-extlinux-compatible.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
# UUIDs are baked into the Hydra SD image — identical on every Pi flashed
|
||||
# from that image. FIRMWARE (FAT) holds the Pi bootloader; NIXOS_SD (ext4)
|
||||
# is root. /boot/firmware must be mounted so nixos-rebuild can update
|
||||
# extlinux config on subsequent rebuilds.
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot/firmware" = {
|
||||
device = "/dev/disk/by-uuid/2178-694E";
|
||||
fsType = "vfat";
|
||||
options = [ "nofail" "noauto" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue