1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/.dotfiles synced 2025-05-03 12:14:07 +00:00
This commit is contained in:
Rae 5e 2025-03-03 19:32:11 -05:00
parent 7cdc89ddeb
commit f80f844343
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
4 changed files with 20 additions and 18 deletions

View file

@ -1,20 +1,12 @@
{ ... }: {
{ lib, ... }: {
raspberry-pi-nix.board = "bcm2712"; # RPI5 64bit
hardware.raspberry-pi.config.all = let
o = k: v: {
name = k;
value = {
enable = true;
value = v;
};
hardware.raspberry-pi.config.all = {
base-dt-params = {
BOOT_UART = { enable = true; value = 1; };
uart_2ndstage = { enable = true; value = 1; };
};
dt-overlays = {
disable-bt = { enable = true; params = {}; };
};
in {
base-dt-params = builtins.listToAttrs [
(o "BOOT_UART" 1)
(o "uart_2ndstage" 1)
];
dt-overlays = builtins.listToAttrs [
(o "disable-bt" {})
];
};
}