fix build issues with the sd image

This commit is contained in:
Christoph Hollizeck 2024-11-23 14:39:56 +01:00
parent c5a7f8ea56
commit 26b430787e
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
8 changed files with 278 additions and 14 deletions

View file

@ -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?
}

View file

@ -49,8 +49,15 @@ in
];
distributedBuilds = true;
settings = {
trusted-users = [
"@wheel"
"remotebuild"
];
trusted-public-keys = [ "nixberry:25s8/rxsolAXg4skjnecCeqcfkxYE9FGCPG5UcXsFlw=" ];
};
};
${namespace} = {
archetypes = {
gaming.enable = true;