turny: fix SPI/GPIO config for newer kernels
Build Images / build (push) Successful in 1m23s
Check / check (push) Failing after 3m14s

- Add complete config.txt settings with u-boot boot lines + spi=on
- Override sdImage.populateFirmwareCommands to use configtxt module output
- Mount firmware partition and add activation script to sync config.txt
- Load spi_bcm2835 and bcm2835_gpiomem kernel modules
- Add udev rule for gpiomem subsystem (not just gpio)
- Relax ProtectKernelTunables so service can access GPIO
- Update turny flake input to rppal-based CS pin fix
This commit is contained in:
Joakim Repomaa
2026-07-05 02:35:34 +03:00
parent 0e664c51f5
commit 3b8ff371b7
65 changed files with 1336 additions and 500 deletions
+11 -6
View File
@@ -61,7 +61,6 @@ let
"opencode"
"opencode-go"
"fireworks-ai"
"firepass"
];
openaiCompatibleProviders = builtins.listToAttrs (
@@ -142,8 +141,8 @@ in
agent = {
enabled = true;
default_model = {
provider = "opencode-go";
model = "glm-5";
provider = "fireworks-ai";
model = "accounts/fireworks/models/glm-5p2";
};
};
agent_servers = {
@@ -181,7 +180,7 @@ in
};
Nix = {
formatter.external = {
command = lib.getExe pkgs.nixfmt-rfc-style;
command = lib.getExe pkgs.nixfmt;
arguments = [ "-q" ];
};
};
@@ -256,7 +255,7 @@ in
arguments = [ "--stdio" ];
};
json-language-server.binary = {
path = lib.getExe nodePackages.vscode-json-languageserver;
path = lib.getExe vscode-json-languageserver;
arguments = [ "--stdio" ];
};
package-version-server.binary.path = lib.getExe pkgs-unstable.package-version-server;
@@ -277,7 +276,13 @@ in
};
edit_predictions = {
mode = "eager";
provider = "copilot";
provider = "open_ai_compatible_api";
open_ai_compatible_api = {
api_url = "https://api.fireworks.ai/inference/v1/completions";
model = "accounts/fireworks/models/qwen3p6-plus";
prompt_format = "qwen";
max_output_tokens = 1024;
};
};
buffer_font_family = "Iosevka Nerd Font";
buffer_font_size = 16;