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:09:08 -05:00
parent a15a59af09
commit 7cdc89ddeb
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
7 changed files with 247 additions and 11 deletions

View file

@ -0,0 +1,13 @@
{ inputs, ... }: {
imports = [
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
inputs.raspberry-pi-nix.nixosModules.sd-image
./hardware-configuration.nix
];
networking.hostName = "near";
time.timeZone = "America/New_York";
system.stateVersion = "24.11";
}

View file

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