Ryan Lahfa
337a71a169
Some checks failed
lint / check (push) Successful in 30s
Check meta / check_meta (pull_request) Failing after 48s
build configuration / build_compute01 (pull_request) Failing after 49s
build configuration / build_storage01 (pull_request) Failing after 50s
build configuration / build_vault01 (pull_request) Failing after 50s
Check meta / check_dns (pull_request) Failing after 1m4s
build configuration / build_web01 (pull_request) Failing after 40s
build configuration / build_rescue01 (pull_request) Failing after 34s
build configuration / build_web02 (pull_request) Failing after 35s
build configuration / push_to_cache (pull_request) Has been skipped
Signed-off-by: Ryan Lahfa <ryan@dgnum.eu>
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
|
|
''
|