1
0
Fork 0
nix-configuration/systems/aarch64-linux/Pihole/hardware-configuration.nix

47 lines
1 KiB
Nix
Raw Normal View History

# Raspberry Pi 4B
# See https://wiki.nixos.org/wiki/NixOS_on_ARM/Raspberry_Pi_4
2024-12-06 18:04:47 +00:00
{
lib,
modulesPath,
...
}:
2024-02-29 14:53:34 +00:00
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
# Enable audio devices
kernelParams = [
"snd_bcm2835.enable_hdmi=1"
"snd_bcm2835.enable_headphones=1"
"dtparam=audio=on"
];
# Switch to a compatible bootloader
loader = lib.mkForce {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
2025-01-12 20:25:45 +00:00
options = [
"lazytime" # Reduce atime writes: https://wiki.archlinux.org/title/Fstab#atime_options
"data=journal" # Commit to the journal before writing to the filesystem.
"journal_async_commit"
];
};
hardware = {
2024-12-18 22:59:32 +00:00
enableRedistributableFirmware = true;
raspberry-pi."4" = {
apply-overlays-dtmerge.enable = true;
fkms-3d.enable = true; # Enable GPU
};
deviceTree.enable = true;
};
2024-02-29 14:53:34 +00:00
}