1 import ./make-test-python.nix (
4 text = ''"flynn" * "reindeerflotilla" *'';
11 server = {config, pkgs, ...}: {
13 # Run a PPPoE access concentrator server. It will spawn an
14 # appropriate PPP server process when a PPPoE client sets up a
16 systemd.services.pppoe-server = {
18 config.environment.etc."ppp/pppoe-server-options".source
19 config.environment.etc."ppp/chap-secrets".source
21 after = ["network.target"];
23 ExecStart = "${pkgs.rpPPPoE}/sbin/pppoe-server -F -O /etc/ppp/pppoe-server-options -q ${pkgs.ppp}/sbin/pppd -I eth1 -L 192.0.2.1 -R 192.0.2.2";
25 wantedBy = ["multi-user.target"];
28 "ppp/pppoe-server-options".text = ''
37 "ppp/chap-secrets" = chap-secrets;
41 client = {config, pkgs, ...}: {
55 environment.etc."ppp/chap-secrets" = chap-secrets;
61 client.wait_until_succeeds("ping -c1 -W1 192.0.2.1")
62 server.wait_until_succeeds("ping -c1 -W1 192.0.2.2")