nixcfg/systems/x86_64-linux/sgx
Harald Hoyer c1503b56aa sgx/firefly: disable btrfs CoW on Firefly III sqlite directory
Random-write SQLite traffic fragments CoW filesystems quickly. The `h`
tmpfiles directive sets +C on the database directory; new SQLite files
(WAL, SHM, recreated main DB) inherit no-CoW automatically. No-op on
non-btrfs filesystems.

Migration of existing files must be done manually with checkpoint-first:
  systemctl stop phpfpm-firefly-iii.service
  sqlite3 .../database.sqlite 'PRAGMA wal_checkpoint(TRUNCATE);'
  # then recreate main file inside the +C dir
  systemctl start phpfpm-firefly-iii.service

Skipping the wal_checkpoint and naively deleting .sqlite-wal will lose
all writes that haven't been checkpointed (PHP-FPM SIGTERM does not
trigger a checkpoint).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 19:31:24 +02:00
..
acme.nix feat(sgx): add firefly-iii personal finance manager 2026-04-26 14:09:40 +02:00
backup.nix fix(sgx): treat rsync exit code 24 as success in backup 2026-04-01 15:39:08 +02:00
default.nix feat(sgx): add firefly-iii personal finance manager 2026-04-26 14:09:40 +02:00
fileserver.nix chore: statix fix 2026-04-20 10:09:24 +02:00
firefly.nix sgx/firefly: disable btrfs CoW on Firefly III sqlite directory 2026-05-01 19:31:24 +02:00
hardware-configuration.nix feat(nix): update SGX hardware configuration for x1 11th gen 2025-12-04 11:07:44 +01:00
mail.nix fix(nixos): correct typo in Postfix configuration 2025-12-03 10:03:29 +01:00
network.nix refactor: comment out resolved DNS customization 2025-02-25 08:44:50 +01:00
nginx.nix feat(sgx): add Uptime Kuma to monitor mx services independently 2026-03-24 17:06:35 +01:00
openwebui.nix chore: statix fix 2026-04-20 10:09:24 +02:00
searx.nix feat(nix): add supported search formats to Searx config 2026-02-06 13:45:18 +01:00
uptime-kuma.nix chore: statix fix 2026-04-20 10:09:24 +02:00
wyoming.nix chore: statix fix 2026-04-20 10:09:24 +02:00