nixpkgs/nixos/tests/wg-access-server.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
661 B
Nix
Raw Normal View History

2024-03-09 16:20:01 +00:00
import ./make-test-python.nix (
{
pkgs,
lib,
kernelPackages ? null,
...
}:
{
name = "wg-access-server";
meta = with pkgs.lib.maintainers; {
maintainers = [ xanderio ];
};
nodes = {
server = {
services.wg-access-server = {
enable = true;
settings = {
adminUsername = "admin";
};
2024-03-09 16:20:01 +00:00
secretsFile = (
pkgs.writers.writeYAML "secrets.yaml" {
adminPassword = "hunter2";
}
);
2024-03-09 16:20:01 +00:00
};
};
};
testScript = ''
start_all()
server.wait_for_unit("wg-access-server.service")
'';
}
)