From febf5a09cd510f4bb3dba66e1429b77a94bb7e50 Mon Sep 17 00:00:00 2001 From: Shaun Smiley Date: Mon, 19 Dec 2022 21:26:47 -0800 Subject: [PATCH] add ServArica (#123) * add ServArica * fix spacing Co-authored-by: Eric Litak --- README.md | 11 +++++++++++ nixos-infect | 4 +++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 83b41a9..da07ba8 100644 --- a/README.md +++ b/README.md @@ -243,9 +243,20 @@ Tested on Cloud VPS. Contabo sets the hostname to something like `vmi######.cont |------------|-----------------|-----------|----------| |Ubuntu | 22.04 |**success**|2022-09-26| +### ServArica +Requires the same static network settings that Digital Ocean does. + + curl https://raw.githubusercontent.com/elitak/nixos-infect/master/nixos-infect | PROVIDER=servarica NIX_CHANNEL=nixos-22.05 bash + +#### Tested on +|Distribution| Name | Status | test date| +|------------|-----------------|-----------|----------| +|Ubuntu | 20.04 | success |2022-11-26| + ### Clouding.io I could not get it to run via UserData scripts, but downloading and executing the script worked flawlessly. ### Tested on |Distribution| Name | Status | test date| |------------|-----------------|-----------|----------| |Debian | 11 |**success**|2022-12-20| + diff --git a/nixos-infect b/nixos-infect index 2cab4cc..ce98e18 100755 --- a/nixos-infect +++ b/nixos-infect @@ -337,7 +337,9 @@ infect() { /nix/var/nix/profiles/system/bin/switch-to-configuration boot } -[ "$PROVIDER" = "digitalocean" ] && doNetConf=y # digitalocean requires detailed network config to be generated +if [[ "$PROVIDER" = "digitalocean" ]] || [[ "$PROVIDER" = "servarica" ]]; then + doNetConf=y # some providers require detailed network config to be generated +fi checkEnv prepareEnv