fix build issues with the sd image
This commit is contained in:
parent
c5a7f8ea56
commit
26b430787e
8 changed files with 278 additions and 14 deletions
|
@ -1,8 +1,7 @@
|
|||
{
|
||||
lib,
|
||||
modulesPath,
|
||||
inputs,
|
||||
namespace,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
|
@ -11,24 +10,65 @@ let
|
|||
inherit (lib) mkForce;
|
||||
in
|
||||
{
|
||||
imports = with inputs.nixos-hardware.nixosModules; [
|
||||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
|
||||
raspberry-pi-5
|
||||
];
|
||||
# imports = with inputs.nixos-hardware.nixosModules; [
|
||||
# (modulesPath + "/installer/scan/not-detected.nix")
|
||||
# raspberry-pi-5
|
||||
# ];
|
||||
|
||||
raspberry-pi-nix.board = "bcm2712";
|
||||
|
||||
hardware = {
|
||||
raspberry-pi = {
|
||||
config = {
|
||||
all = {
|
||||
base-dt-params = {
|
||||
BOOT_UART = {
|
||||
value = 1;
|
||||
enable = true;
|
||||
};
|
||||
uart_2ndstage = {
|
||||
value = 1;
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
dt-overlays = {
|
||||
disable-bt = {
|
||||
enable = true;
|
||||
params = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PasswordAuthentication = false;
|
||||
KbdInteractiveAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
${namespace} = {
|
||||
|
||||
submodules = {
|
||||
basics = enabled;
|
||||
};
|
||||
|
||||
apps.cli-apps.helix = {
|
||||
pkg = pkgs.helix;
|
||||
};
|
||||
|
||||
system = {
|
||||
boot = {
|
||||
# Raspberry Pi requires a specific bootloader.
|
||||
enable = mkForce false;
|
||||
};
|
||||
};
|
||||
|
||||
user.trustedPublicKeys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHFrDiO5+vMfD5MimkzN32iw3MnSMLZ0mHvOrHVVmLD0"
|
||||
];
|
||||
};
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
|
@ -37,5 +77,5 @@ in
|
|||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "24.05"; # Did you read the comment?
|
||||
system.stateVersion = "24.11"; # Did you read the comment?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue