From 50f74d35e73529e67a27cee7fcd36e18a6d92e3a Mon Sep 17 00:00:00 2001 From: stuebinm Date: Wed, 22 Mar 2023 03:15:41 +0100 Subject: package glitchtip i don't know why i did this. i literally have no use for it. --- ilex/configuration.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'ilex/configuration.nix') diff --git a/ilex/configuration.nix b/ilex/configuration.nix index 6599cd4..2b07092 100644 --- a/ilex/configuration.nix +++ b/ilex/configuration.nix @@ -33,19 +33,41 @@ services.postgresql = { enable = true; - ensureDatabases = [ "tracktrain" ]; + ensureDatabases = [ "tracktrain" "glitchtrip" ]; ensureUsers = [ { name = "tracktrain"; ensurePermissions = { "DATABASE tracktrain" = "ALL PRIVILEGES"; }; + } { + name = "glitchtrip"; + ensurePermissions = { + "DATABASE glitchtrip" = "ALL PRIVILEGES"; + }; } ]; authentication = '' local all all trust host all all 127.0.0.1/32 trust + host all all ::1/127 trust ''; }; + services.uwsgi = { + enable = true; + plugins = [ "python3" ]; + instance = { + type = "normal"; + pythonPackages = self: [ pkgs.glitchtip ]; + module = "glitchtip.wsgi:application"; + chdir = pkgs.glitchtip; + http = ":8080"; + env = [ + "DATABASE_URL=postgres://glitchtrip@localhost:5432/glitchtrip" + ]; + }; + }; + + services.tlp = { enable = true; settings = { -- cgit v1.2.3