Crocuda_vps

Deploy your services! 🚀

Add compatiblity module to your configuration.

For your VM to be compatibile with the virshle hypervisor, you need to import the following required module.

  • Add the virshle and the pipelight flake to your flake inputs.
# flake.nix
{
  inputs =  {
    virshle = {
      url = "github:pipelight/virshle";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    pipelight.url = "github:pipelight/pipelight";
  };
}
  • And import the vm module.
# vm.nix
{
  inputs,
  ...
}: {
  imports = [
    inputs.virshle.nixosModules.vm
  ];
}

Or, you can just start fresh from the template flake:

nix flake init \
    --template github:pipelight/virshle

Build locally and sent to remote.

You might not be able to build new generations locally because of your Vm low numbers of CPU and tiny RAM.

It is recommanded to build your generations locally and send them to your Vm afterwards, with commands like the following:

# with the default cli
nixos-rebuild switch \
 --flake ".#vps" \
 --target-host "vm_name" \
 --use-remote-sudo
# with deploy-rs (magicRollback)
deploy ".#vps"