mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-05-02 19:53:07 +00:00
~
This commit is contained in:
parent
7cdc89ddeb
commit
f80f844343
4 changed files with 20 additions and 18 deletions
|
@ -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" {})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue