depot/third_party/nixpkgs/nixos/tests/wg-access-server.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

28 lines
566 B
Nix

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";
};
secretsFile = (pkgs.writers.writeYAML "secrets.yaml" {
adminPassword = "hunter2";
});
};
};
};
testScript = ''
start_all()
server.wait_for_unit("wg-access-server.service")
'';
}
)