Commit Graph

7 Commits

Author SHA1 Message Date
NotAShelf
a466f14627
nixos/wakapi: fix incorrect assertion conditions
Using implication here (->) causes the assertions to fail haphazardly due to the ordering *implied* by the operator. By using AND, we avoid this case. Unsurprisingly, this was caught by the NixOS test.
2024-10-22 12:27:24 +03:00
NotAShelf
fbec0c0d7f
nixos/wakapi: fix failing assertions 2024-10-22 12:05:02 +03:00
NotAShelf
c3ce64b13a
nixos/wakapi: fix typo in warning conditional
This makes the warning work as intended again.
2024-10-22 11:59:09 +03:00
Christina Sørensen
d218858bb1
nixos/wakapi: add database options; gate db creation behind database.createLocally (#341176) 2024-10-18 18:04:46 +02:00
Bruno Bigras
90f457d197 wakapi: set StateDirectory
fix #347393
2024-10-09 02:54:57 -04:00
NotAShelf
b4878419ee
nixos/wakapi: add database options; gate db creation behind database.createLocally
Currently the NixOS module for Wakapi will create the database
automagically if the user has database dialect configured in the Wakapi
configuration file. By all means, this is undocumented behaviour and an
anti-feature.

This MR adds a database.createLocally option that allows the end-user to
create auto-creation behaviour, and lays out groundwork for automated
database setups for different database dialects supported by Wakapi.
2024-09-16 12:50:01 +03:00
isabel
f3c2be2a80
nixos/wakapi: init module 2024-08-19 17:16:01 +01:00