Skip to content

Latest commit

 

History

History
98 lines (65 loc) · 2.78 KB

README.md

File metadata and controls

98 lines (65 loc) · 2.78 KB

clawsiecats

A configuration optimized for limited compute availability, targeted for VPS machines. It hosts routing services, tailscale, some other useful stuff. It has impermanence enabled.

Uncomment the disko partioning configuration that should be used in flake.nix under the variant before deployment. Supports MBR, GPT, GPT+LUKS. I haven't gotten MBR+LUKS working yet.

Vultr (GPT, GPT+LUKS)

The configuration looks to work fine on the most minimal Vultr configuration.

CPU Memory Disk Space
1 vCPU 0.5 GB 10 GB SSD

Deployment Steps

  1. Replace my SSH public keys in /generators/minimal.nix.

  2. Build the minimal ISO:

$ nix build '.#minimal-iso'
$ ls ./result/iso/nixos.iso
  1. Deploy a new machine on Vultr (any OS).

  2. Update the machine settings on Vultr to boot from the generated ISO. Vultr takes in the ISO URL, so I'll need to host this ISO somewhere first.

  3. Replace the SSH public keys in /machines/clawsiecats/minimal.nix.

  4. Deploy the configuration using nixos-anywhere:

    # For GPT+LUKS
    $ ./machines/clawsiecats/anywhere.sh '.#clawsiecats-luks' [email protected] --luks
    
    # For GPT
    $ ./machines/clawsiecats/anywhere.sh '.#clawsiecats' [email protected]

    The installation succeeds hopefully.

  5. Remove the ISO from Vultr machine settings and let the machine reboot.

  6. (GPT+LUKS only) Decrypt the drive in dropbear:

    $ ssh vps.machine.ip.address -p 2222
    
  7. Log in to the freshy installed NixOS:

    $ ssh vps.machine.ip.address
    

HostVDS (MBR)

The configuration goes tortoise after a while on the most minimal HostVDS configuration.

CPU Memory Disk Space
1 vCPU 1.0 GB 10 GB SSD

This, however, seems like HostVDS issue to me more than configuration overloading the machine.

The very next tier machine looks to work fine.

CPU Memory Disk Space
1 vCPU 2.0 GB 20 GB SSD

Deployment Steps

  1. Replace my SSH public keys in /generators/minimal.nix.

  2. Create a new instance on HostVDS and choose Debian 12 as the OS.

  3. Deploy the configuration using nixos-anywhere:

    $ ./machines/clawsiecats/anywhere.sh '.#clawsiecats' [email protected]

    The installation succeeds hopefully.

  4. Let the machine reboot.

  5. Log in to the freshy installed NixOS:

    $ ssh vps.machine.ip.address
    

Minimal configuration (for testing purpose):

$ ./machines/clawsiecats/anywhere.sh '.#clawsiecats-minimal' [email protected]