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
+6
View File
@@ -20,6 +20,8 @@ in
"flakes"
];
auto-optimise-store = true;
min-free = 5 * 1024 * 1024 * 1024;
max-free = 10 * 1024 * 1024 * 1024;
};
gc = {
automatic = true;
@@ -28,6 +30,8 @@ in
};
};
services.journald.extraConfig = "SystemMaxUse=500M";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.binfmt.emulatedSystems = [ "x86_64-linux" ];
@@ -164,6 +168,8 @@ in
"builder"
];
modules.tempBuildStorage.enable = true;
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
+4
View File
@@ -58,5 +58,9 @@
file = ../../secrets/invidious.age;
owner = config.systemd.services.invidious.serviceConfig.User;
};
"grafana/secret-key" = lib.mkIf config.services.grafana.enable {
file = ../../secrets/grafana/secret-key.age;
owner = config.systemd.services.grafana.serviceConfig.User;
};
};
}
+1 -8
View File
@@ -120,6 +120,7 @@ in
user = smtp.username;
from_address = smtp.from;
};
security.secret_key = "$__file{${secrets."grafana/secret-key".path}}";
};
};
@@ -327,14 +328,6 @@ in
subdomain = "irc";
};
sillytavern = {
enable = true;
subdomain = "st";
listen = true;
whitelist = false;
port = 3100;
};
nginx.virtualHosts."isarepomaa.com" = {
forceSSL = true;
enableACME = true;