mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
22 lines
447 B
Nix
22 lines
447 B
Nix
|
{ lib, ... }:
|
||
|
|
||
|
{
|
||
|
name = "privatebin";
|
||
|
meta.maintainers = [ lib.maintainers.savyajha ];
|
||
|
|
||
|
nodes.dataImporter =
|
||
|
{ ... }:
|
||
|
{
|
||
|
services.privatebin = {
|
||
|
enable = true;
|
||
|
enableNginx = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
testScript = ''
|
||
|
dataImporter.wait_for_unit("phpfpm-privatebin.service")
|
||
|
dataImporter.wait_for_unit("nginx.service")
|
||
|
dataImporter.succeed("curl -fvvv -Ls http://localhost/ | grep 'PrivateBin'")
|
||
|
'';
|
||
|
}
|