Allow ssh config hostnames #49

Merged
J-Swift merged 3 commits from J-Swift/feature/allow-ssh-config-hostnames into master 2023-12-11 18:35:57 +00:00
Showing only changes of commit f1b4d6ea24 - Show all commits

View file

@ -38,7 +38,7 @@
user = n.sshUser or "root"; user = n.sshUser or "root";
host = n.host or ""; host = n.host or "";
sshConfigHost = n.sshConfigHost or ""; sshConfigHost = n.sshConfigHost or "";
userHost = if sshConfigHost != "" then sshConfigHost else if host != "" then "${user}@${host}" else abort "_module.args.nixinate.host or _module.args.nixinate.sshUserHost must be set"; userHost = if sshConfigHost != "" then sshConfigHost else if host != "" then "${user}@${host}" else abort "_module.args.nixinate.host or _module.args.nixinate.sshConfigHost must be set";
where = n.buildOn or "remote"; where = n.buildOn or "remote";
remote = if where == "remote" then true else if where == "local" then false else abort "_module.args.nixinate.buildOn is not set to a valid value of 'local' or 'remote'"; remote = if where == "remote" then true else if where == "local" then false else abort "_module.args.nixinate.buildOn is not set to a valid value of 'local' or 'remote'";
substituteOnTarget = n.substituteOnTarget or false; substituteOnTarget = n.substituteOnTarget or false;