mirror of
https://git.sr.ht/~roxwize/.dotfiles
synced 2025-05-03 12:14:07 +00:00
~
This commit is contained in:
parent
a15a59af09
commit
7cdc89ddeb
7 changed files with 247 additions and 11 deletions
13
nixos/hosts/near/configuration.nix
Normal file
13
nixos/hosts/near/configuration.nix
Normal 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";
|
||||
}
|
20
nixos/hosts/near/hardware-configuration.nix
Normal file
20
nixos/hosts/near/hardware-configuration.nix
Normal 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" {})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue