diff --git a/iso/dgn-install/dgn-install.sh b/iso/dgn-install/dgn-install.sh index ab5c767..2856d0a 100644 --- a/iso/dgn-install/dgn-install.sh +++ b/iso/dgn-install/dgn-install.sh @@ -18,6 +18,10 @@ while [ "$#" -gt 0 ]; do bootDevice="$1" shift 1 ;; + --swap) + swapDevice="$1" + shift 1 + ;; --domain) domain="$1" shift 1 @@ -52,6 +56,10 @@ mkdir /mnt/boot mount "$bootDevice" /mnt/boot +if [ "x$swapDevice" != "x" ]; then + swapon "$swapDevice" +fi + # Generate configration nixos-generate-config --root /mnt