~cadence/breezewiki-discuss

Configurable storage path

Details
Message ID
<OJvv14W--F-9@tutanota.com>
Sender timestamp
1740470686
DKIM signature
pass
Download raw message
Hello,    

I have been using Breezewiki for some time and it has served my community very well.  
Thanks for your amazing work.  

I've recently been trying to package it for NixOS - just in binary form to begin with.  
Due to the way Nix builds packages, the build directory is immutable once it is placed  
into the Nix store. This leads to the following error at runtime:  

Feb 25 05:33:30 nixos breezewiki[809701]: make-directory: cannot make directory  
Feb 25 05:33:30 nixos breezewiki[809701]:   path: /nix/store/82qanx06kix8lza1i4zkifgwbw246ivg-breezewiki-20250108172305/storage/  
Feb 25 05:33:30 nixos breezewiki[809701]:   system error: Read-only file system; errno=30  
Feb 25 05:33:30 nixos breezewiki[809701]:   context...:  
Feb 25 05:33:30 nixos breezewiki[809701]:    .../racket/file.rkt:134:0: make-directory*  
Feb 25 05:33:30 nixos breezewiki[809701]:    body of '#%embedded:archiver/archiver:  
Feb 25 05:33:30 nixos breezewiki[809701]: note: 0 items loaded from config file  
Feb 25 05:33:30 nixos breezewiki[809701]: note: 7 items loaded from environment variables  
Feb 25 05:33:30 nixos systemd[1]: breezewiki.service: Main process exited, code=exited, status=1/FAILURE  
Feb 25 05:33:30 nixos systemd[1]: breezewiki.service: Failed with result 'exit-code'.  

If there was a `storage_path` configuration option (with associated environment variable)  
to control where storage should be kept, this would greatly simplify packaging.  

Thanks in advance!
Reply to thread Export thread (mbox)