From 54f070ef0f905f867a24dece72f667be23f9f843 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 1 Dec 2026 00:51:48 +0000 Subject: enstate: --apply starts the unit that runs --migrate again if it failed The setting unit names it (the module: enstate.service). After a boot without state it failed; an accepted --apply starts it (--no-block, with the lock released), so it serves the views and is no longer failed. --- nix/module.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nix') diff --git a/nix/module.nix b/nix/module.nix index 62f4222..a273d45 100644 --- a/nix/module.nix +++ b/nix/module.nix @@ -142,6 +142,8 @@ let settings = pkgs.writers.writeJSON "enstate-config.json" { state-dir = cfg.stateDir; run-dir = cfg.runDir; + # Started again by --apply if it failed (for want of the state, at boot). + unit = "enstate.service"; }; enstate = lib.getExe cfg.package; -- cgit v1.3.1