3
0
Fork 0
forked from mirrors/nixpkgs

nixos/sourcehut: update test

This commit is contained in:
Julien Moutinho 2021-08-28 19:46:05 +02:00 committed by Tom Bereknyei
parent 8ed7fd0f3a
commit 0dc4ccc9a3
2 changed files with 15 additions and 4 deletions

View file

@ -432,6 +432,7 @@ in
solanum = handleTest ./solanum.nix {}; solanum = handleTest ./solanum.nix {};
solr = handleTest ./solr.nix {}; solr = handleTest ./solr.nix {};
sonarr = handleTest ./sonarr.nix {}; sonarr = handleTest ./sonarr.nix {};
sourcehut = handleTest ./sourcehut.nix {};
spacecookie = handleTest ./spacecookie.nix {}; spacecookie = handleTest ./spacecookie.nix {};
spark = handleTestOn ["x86_64-linux"] ./spark {}; spark = handleTestOn ["x86_64-linux"] ./spark {};
sslh = handleTest ./sslh.nix {}; sslh = handleTest ./sslh.nix {};

View file

@ -12,10 +12,20 @@ import ./make-test-python.nix ({ pkgs, ... }:
services.sourcehut = { services.sourcehut = {
enable = true; enable = true;
services = [ "meta" ]; services = [ "meta" ];
originBase = "sourcehut"; redis.enable = true;
settings."sr.ht".service-key = "8888888888888888888888888888888888888888888888888888888888888888"; postgresql.enable = true;
settings."sr.ht".network-key = "0000000000000000000000000000000000000000000="; meta.enable = true;
settings.webhooks.private-key = "0000000000000000000000000000000000000000000="; settings."sr.ht" = {
global-domain = "sourcehut";
service-key = pkgs.writeText "service-key" "8b327279b77e32a3620e2fc9aabce491cc46e7d821fd6713b2a2e650ce114d01";
network-key = pkgs.writeText "network-key" "cEEmc30BRBGkgQZcHFksiG7hjc6_dK1XR2Oo5Jb9_nQ=";
};
settings.webhooks.private-key = pkgs.writeText "webhook-key" "Ra3IjxgFiwG9jxgp4WALQIZw/BMYt30xWiOsqD0J7EA=";
};
services.postgresql = {
enable = true;
enableTCPIP = false;
settings.unix_socket_permissions = "0770";
}; };
}; };