diff --git a/Makefile.am b/Makefile.am index d7020c6..1a10c7a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -39,6 +39,7 @@ guix-commit.txt: Makefile "s#DOMAIN#$(DOMAIN)#g ; \ s#LETSENCRYPT_EMAIL#$(LETSENCRYPT_EMAIL)#g ; \ s#VM_IPV4_ADDRESS#$(VM_IPV4_ADDRESS)#g ; \ + s#VM_IPV6_ADDRESS#$(VM_IPV6_ADDRESS)#g ; \ s#VM_SSH_PUB_KEY#$(VM_SSH_PUB_KEY)#g" $< > $@ %.sh: %.sh.tmpl guix-commit.txt Makefile diff --git a/configure.ac b/configure.ac index 0b7d9e0..cd2d2da 100644 --- a/configure.ac +++ b/configure.ac @@ -26,6 +26,7 @@ AC_CHECK_PROG([SED], [sed], [sed]) AC_SUBST([DOMAIN], []) AC_SUBST([LETSENCRYPT_EMAIL], []) AC_SUBST([VM_IPV4_ADDRESS], []) +AC_SUBST([VM_IPV6_ADDRESS], []) AC_SUBST([VM_SSH_PUB_KEY], []) AC_ARG_WITH([domain], @@ -47,9 +48,16 @@ AC_ARG_WITH([vm-ipv4-address], [VM_IPV4_ADDRESS=$withval], [VM_IPV4_ADDRESS="192.168.1.117/24"]) +AC_ARG_WITH([vm-ipv6-address], + [AS_HELP_STRING([--with-vm-ipv6-address=VM_IPV6_ADDRESS], [Use custom VM + IPv6 address. (default=2001:910:1021::117/64)])], + [VM_IPV6_ADDRESS=$withval], + [VM_IPV6_ADDRESS="2001:910:1021::117/64"]) + AC_ARG_WITH([vm-ssh-public-key], [AS_HELP_STRING([--with-ssh-vm-public-key=VM_SSH_PUB_KEY], [Use custom VM SSH public key for use with 'guix deploy'. (default=\ + ssh-ed25519\ AAAAC3NzaC1lZDI1NTE5AAAAIEjLYbJ+47MTte960IbOUTRzOD012ewt1IZgOOc+NqDa)])], [VM_SSH_PUB_KEY=$withval], @@ -65,5 +73,8 @@ echo "Configuration options:" echo "======================" echo "- Domain: $DOMAIN" echo "- Let's Encrypt email: $LETSENCRYPT_EMAIL" -echo "- VM IPv4 address: $VM_IPV4_ADDRESS" +echo "- VM IPv4 settings:" +echo " address: $VM_IPV4_ADDRESS" +echo "- VM IPv6 settings:" +echo " address: $VM_IPV6_ADDRESS" echo "- VM SSH public key: $VM_SSH_PUB_KEY" diff --git a/mumble-vm-system.scm.tmpl b/mumble-vm-system.scm.tmpl index bc90086..4e51c1a 100644 --- a/mumble-vm-system.scm.tmpl +++ b/mumble-vm-system.scm.tmpl @@ -187,7 +187,10 @@ https://DOMAIN/ (static-networking (addresses (list (network-address (device "eth0") - (value "VM_IPV4_ADDRESS")))) + (value "VM_IPV4_ADDRESS")) + (network-address + (device "eth0") + (value "VM_IPV6_ADDRESS")))) (routes (list (network-route (destination "default") (gateway "192.168.10.1"))))