1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-22 01:11:02 +03:00
Commit graph

11 commits

Author SHA1 Message Date
isabel
c7968cf140
nixos/wakapi: harden systemd service
when using `systemd-analyze security wakapi.service` we went from a 5.9
to a 3.
2025-03-13 15:30:32 +00:00
NotAShelf
f10143ec34
nixos/wakapi: fix logical error in warning; minor grammatical improvements 2025-01-19 13:56:20 +03:00
NotAShelf
3204e04a80
nixos/wakapi: add stateDir and set service WorkingDirectory
For some reason, StateDirectory does not work very well with the sqlite format.
This acts as a workaround of such, and allows the service to alternatively work
in an alternative, user-created directory if the issue does arise again.

See https://github.com/muety/wakapi/issues/731 for context and
motivations for this change.
2025-01-03 08:25:48 +03:00
NotAShelf
a8537d1198
nixos/wakapi: don't merge EnvironmentFile paths 2024-12-08 20:26:54 +03:00
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