Using nixos-infect manual

Well i know that it’s unsupported way but i just want to try SP

bough VPS and domain from senko, installed debian 13 and tried to run script with such envs:

export LUSER="doesnm"
export ENCODED_PASSWORD="MjAwMjcwZjYxOTQ4ZWU5ZGI2OTAzYWE0Cg=="
export PROVIDER=other
export DOMAIN=doesnmlab.xyz
export DNS_PROVIDER_TYPE=DESEC
export SSH_AUTHORIZED_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPWkR+F0tt+iCReCLEEnjKJ9qCnrJGLCMVxK1siBFLsk u0_a191@localhost"
export DNS_PROVIDER_TOKEN="myrealtoken"
export API_TOKEN="none"

and getting such output

Tried with ubuntu-24.04, same error

Infect log: https://files.catbox.moe/swzmc1.log

ok i figured that’s wrong but… got out of space

Set PROVIDER to OTHER, upper-case.
export PROVIDER=OTHER

API token should be a random string, it will be used to connect to API (you should also refresh the token via api after installation)

seems the issue was because i didn’t specify VOLUME_DEV_PATH (it’s autofilled for hetzner and do)

about API_TOKEN: I thought it was a token from the hosting provider

can’t continue until i upgrade disk size or buy new vps

I would recommend using Ubuntu 22, we had some issues with 24.

i saw ubuntu 24.04 in hetzner provider code so decided to use them

ah, maybe we fixed that issues then

what the minimal system requirements?

I would recommend at least 2 cores, 4GiB of RAM and 40 GiB of system storage

tried upgrade to 20gb and script executed without problem but… in nixos vm network connection are broken

upd: maybe i need to pass DoNetConf=y

i got prompt about multi-user installation (which i didn’t before) and installation are failed due strange error

This is a syntax error in the netconf section. Can you share the full contents of /etc/nixos/deployment.nix?

the genNetworkingConf generates broken config

{ lib, ... }: {
  # The content below is static and belongs to this deployment only!
  # Do not copy this configuration file to another NixOS installation!

  system.stateVersion = lib.mkDefault "25.05";

  # Networking configuration was populated by nixos-infect with the networking
  # details gathered from the running system.
  networking = {
    defaultGateway = "10.0.0.1";
    defaultGateway6
    dhcpcd.enable = false;
    usePredictableInterfaceNames = lib.mkForce true;
    interfaces = {
      ens3 = {
        ipv4.addresses = [
          { address="91.132.160.41"; prefixLength=32; }
        ];
        ipv6.addresses = [
          { address="2a12:bec4:1bb0:5ea::2"; prefixLength=64; }
          { address="fe80::5054:ff:fe07:c0a6"; prefixLength=64; }
        ];
        ipv4.routes = [ { address = "10.0.0.1"; prefixLength = 32; } ];
        ipv6.routes = [ { address = 2a12:bec4:1bb0:5ea::1; prefixLength = 128; } ];
      };
    };
  };
  services.udev.extraRules = ''
    ATTR{address}=="52:54:00:07:c0:a6", NAME="ens3"
  '';
}

i opened issue about it: #39 - ipv6 gateway are fetched incorrectly - SelfPrivacy/selfprivacy-nixos-infect - Forgejo: Beyond coding. We Forge.