Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
21 lines
447 B
Nix
21 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'")
|
|
'';
|
|
}
|