forked from DGNum/infrastructure
19 lines
421 B
Nix
19 lines
421 B
Nix
{
|
|
pkgs ? import <nixpkgs> { },
|
|
username,
|
|
domain ? "sso.dgnum.eu",
|
|
ssid ? "DGNum 5G prototype (AX)",
|
|
password,
|
|
}:
|
|
pkgs.runCommand "connection-${username}-android-profile.xml"
|
|
{
|
|
SSID = ssid;
|
|
USERNAME = "${username}@${domain}";
|
|
PASSWORD = password;
|
|
}
|
|
''
|
|
substitute ${./android-profile-template.xml} $out \
|
|
--subst-var SSID \
|
|
--subst-var USERNAME \
|
|
--subst-var PASSWORD
|
|
''
|