feat: implement hybrid declarative state with automatic Nix sync
Some checks failed
Check / eval-and-lint (push) Has been cancelled

This commit is contained in:
Bernardo Magri
2026-05-31 20:09:12 +01:00
parent 624023c1d5
commit dc3346bc55
18 changed files with 182 additions and 48 deletions

View File

@@ -99,3 +99,11 @@ LOCK_FILE="${STATE_FILE}.lock"
# Clean up lock file
rm -f "$LOCK_FILE"
# If we just updated the main home state file, sync it to the Nix configuration.
# This bridges the gap between runtime UI changes and declarative Nix.
if [[ "$STATE_FILE" == "$HOME/.config/nomarchy/state.json" ]]; then
if command -v nomarchy-sync-nix-state >/dev/null 2>&1; then
nomarchy-sync-nix-state
fi
fi