From 074a6ffb981a7c97876dcb93e0d5c2113a9bd74c Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 11 Feb 2024 17:14:24 +0100 Subject: 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 --- ilex/configuration.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'ilex') 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; @@ -50,6 +50,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"; -- cgit v1.2.3