Compare commits

..

5 Commits

Author SHA1 Message Date
Alexander Heldt d0ef7f5b7e manatee: Add wl-clipboard 2026-07-26 07:36:05 +00:00
Alexander Heldt 5eacb60b50 manatee: Add claude 2026-07-26 07:35:53 +00:00
Alexander Heldt a33a22aa50 Update solo-referee flake input 2026-07-26 07:34:21 +00:00
Alexander Heldt 56c04b1f70 manatee: Guard podman containers against crash-looping
Add a start-limit (5 restarts / 5 min) to the romm, romm-db, romm-redis
and homeassistant podman services so a failing container enters a
`failed` state instead of retrying forever. A slow crash-loop (~5s per
attempt) stays under systemd's default 5-starts-per-10s limit, so a
longer window is needed to catch it.
2026-07-26 07:32:16 +00:00
Alexander Heldt cd81da9bfd Update puppy-tracker flake input 2026-07-24 15:19:12 +00:00
4 changed files with 34 additions and 8 deletions
Generated
+8 -8
View File
@@ -877,11 +877,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1784796326, "lastModified": 1784906229,
"narHash": "sha256-TLnG/9Stq67FLpY11779CrHdXT9a4UE6dcYcUuvOAn4=", "narHash": "sha256-9ZzpwieFwushXgbZZj1W4i8uhI0dmLZCcQSb6qVhn18=",
"ref": "main", "ref": "main",
"rev": "22a5ea76aa5b3b2d4f251df3fd5330ce3aa927aa", "rev": "374e630d8fd0fa063753ffaa3537ada4fb4bc11e",
"revCount": 54, "revCount": 55,
"type": "git", "type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/puppy-tracker.git" "url": "ssh://gitea@git.ppp.pm:1122/alex/puppy-tracker.git"
}, },
@@ -923,11 +923,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1784841708, "lastModified": 1785015267,
"narHash": "sha256-MFWt9qWaCZXOCrJnacC8bmxndbnivEkKD1QHEIpWDf8=", "narHash": "sha256-NHaaFMznPus9jABGXlSHo++bYcbQeBnxvYPt/CzBEHg=",
"ref": "main", "ref": "main",
"rev": "6782daabb65df4374bd9af433938fe4ab05124a2", "rev": "42af5dc48d1e2466a6b09273c7c96dfe2ab13c0b",
"revCount": 6, "revCount": 10,
"type": "git", "type": "git",
"url": "ssh://gitea@git.ppp.pm:1122/alex/solo-referee.git" "url": "ssh://gitea@git.ppp.pm:1122/alex/solo-referee.git"
}, },
+2
View File
@@ -15,6 +15,8 @@
home.packages = [ home.packages = [
pkgs.streamrip pkgs.streamrip
pkgs.claude-code
pkgs.wl-clipboard
]; ];
home.stateVersion = "24.11"; home.stateVersion = "24.11";
@@ -117,6 +117,16 @@ in
hardware.bluetooth.enable = true; hardware.bluetooth.enable = true;
# Give up and enter a `failed` state (visible in `systemctl --failed`) if the
# container restarts more than 5 times in 5 minutes, instead of crash-looping
# forever. The window is deliberately long: a slow crash-loop (~5s per attempt)
# stays under systemd's default 5-starts-per-10s limit and would otherwise
# retry indefinitely.
systemd.services.podman-homeassistant = {
startLimitIntervalSec = 300;
startLimitBurst = 5;
};
virtualisation.oci-containers = { virtualisation.oci-containers = {
backend = "podman"; backend = "podman";
+14
View File
@@ -26,6 +26,16 @@ let
- 'Thumbs.db' - 'Thumbs.db'
- '.DS_Store' - '.DS_Store'
''; '';
# Give up and enter a `failed` state (visible in `systemctl --failed`) if a
# container restarts more than 5 times in 5 minutes, instead of crash-looping
# forever. The window is deliberately long: a slow crash-loop (~5s per attempt)
# stays under systemd's default 5-starts-per-10s limit and would otherwise
# retry indefinitely.
crashLoopGuard = {
startLimitIntervalSec = 300;
startLimitBurst = 5;
};
in in
{ {
options = { options = {
@@ -51,6 +61,10 @@ in
"d /var/lib/romm/assets 0755 root root -" "d /var/lib/romm/assets 0755 root root -"
]; ];
systemd.services.podman-romm = crashLoopGuard;
systemd.services.podman-romm-db = crashLoopGuard;
systemd.services.podman-romm-redis = crashLoopGuard;
systemd.services.romm-net = { systemd.services.romm-net = {
description = "Create Podman network for RomM"; description = "Create Podman network for RomM";
after = [ "podman.service" ]; after = [ "podman.service" ];