summaryrefslogtreecommitdiff
path: root/ilex
diff options
context:
space:
mode:
authorstuebinm2024-02-11 17:14:24 +0100
committerstuebinm2024-02-11 17:14:24 +0100
commit074a6ffb981a7c97876dcb93e0d5c2113a9bd74c (patch)
tree69880436b140b675009434cd5101a5711f18528a /ilex
parent062d966cb4790437dbd5050c3fb84925a0fa3a96 (diff)
pkgs: init bookwyrm
this is still missing: - a nice way to do settings - lots of testing (run the manage.py test script in a nixos test?) - an actual way to deploy this in a halfway reasonable way
Diffstat (limited to 'ilex')
-rw-r--r--ilex/configuration.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/ilex/configuration.nix b/ilex/configuration.nix
index 0f0e528..70ca74d 100644
--- a/ilex/configuration.nix
+++ b/ilex/configuration.nix
@@ -7,7 +7,7 @@
{
imports = [
./hardware-configuration.nix
- ../modules/glitchtip.nix
+ # ../modules/glitchtip.nix
../modules/crs-tools.nix
];
@@ -40,7 +40,7 @@
services.postgresql = {
enable = true;
- ensureDatabases = [ "tracktrain" "glitchtrip" "crstracker" "travelynx" ];
+ ensureDatabases = [ "tracktrain" "glitchtrip" "crstracker" "travelynx" "bookwyrm" ];
ensureUsers = [ {
name = "tracktrain";
ensureDBOwnership = true;
@@ -51,6 +51,9 @@
name = "glitchtrip";
ensureDBOwnership = true;
} {
+ name = "bookwyrm";
+ ensureDBOwnership = true;
+ } {
name = "crstracker";
ensureDBOwnership = true;
} ];
@@ -62,6 +65,11 @@
# package = pkgs.postgresql_11;
};
+ services.redis.servers."bookwyrm" = {
+ enable = true;
+ port = 6379;
+ };
+
# services.glitchtip = {
# enable = true;
# databaseUrl = "postgres://glitchtrip@localhost:5432/glitchtrip";