Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage through zerotier VPN #204

Open
DavHau opened this issue Sep 7, 2023 · 1 comment
Open

Usage through zerotier VPN #204

DavHau opened this issue Sep 7, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@DavHau
Copy link
Member

DavHau commented Sep 7, 2023

Is your feature request related to a problem? Please describe.

I did not manage to use nixos-anywhere on a host that can only be reached via a zerotier VPN

Describe the solution you'd like

Apply the host's configuration to the kexec installer, so that the installer can be reached through the VPN

Additional context

I have tried to apply my hosts nixos configuration to the installer via this nixos module that I import into the hosts config:
anywhere-installer.nix:

{extendModules, inputs, lib, ...}: let
  extendedNixos = extendModules {
    modules = [
      (inputs.nixos-images + /nix/kexec-installer/module.nix)
    ];
  };
in {
  system.build.anywhereVm = extendedNixos.config.system.build.vm;
  system.build.anywhereInstaller =
    lib.mkForce extendedNixos.config.system.build.kexecTarball;
}

... and then use nixos-anywhere like this:

nix run github:numtide/nixos-anywhere -- --flake .#my-machine root@10.241.225.42 --kexec $(nix build .#nixosConfigurations.my-machine.config.system.build.anywhereInstaller --print-out-paths)/*

... but the machine did not join the zerotier network. Not sure why. I could not debug this further as this was a remote machine.

It would be nice to have a VM test for the full nixos-anywhere installation. As of now there is only one for the formatting AFAIK.
Being able to test custom installers would be important, because when trying on a real host there is always only one shot unti the machine is stuck.

@DavHau DavHau added the enhancement New feature or request label Sep 7, 2023
@Mic92
Copy link
Member

Mic92 commented Sep 18, 2023

That will not be visible with the current design because we use the nixos VM test framework that has no access to the internet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants