feat: implement hybrid declarative state with automatic Nix sync
Some checks failed
Check / eval-and-lint (push) Has been cancelled
Some checks failed
Check / eval-and-lint (push) Has been cancelled
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user