updates / experimental TC setup

This commit is contained in:
2026-10-24 10:44:58 +02:00
parent 3c25fc5d41
commit d36b281a4d
48 changed files with 1147 additions and 718 deletions
+13 -1
View File
@@ -31,12 +31,24 @@ in {
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStartPre = ["${wait-for-printer}/bin/wait-for-printer"];
# Als ExecStart (nicht ExecStartPre!): ohne ExecStart ist die Unit
# ungueltig und systemd laedt sie gar nicht ("bad unit file setting").
ExecStart = "${wait-for-printer}/bin/wait-for-printer";
Restart = "on-failure";
RestartSec = "30s";
};
};
# CUPS erst starten, wenn der Drucker erreichbar ist (Gate via ensure-printers).
# cups-post-start fuehrt lpadmin aus und schlaegt fehl, solange NetBird beim
# Boot noch nicht steht -> Restart-Schleife -> start-limit-hit von
# cups.service und cups.socket. Ist der Drucker nicht erreichbar (unterwegs),
# startet CUPS trotzdem (Wants, kein Requires) wie bisher.
systemd.services.cups = {
wants = ["ensure-printers.service"];
after = ["ensure-printers.service"];
};
services.printing = {
enable = true;
drivers = with pkgs; [