User Tools

Site Tools


manuals:vps:userdata

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
manuals:vps:userdata [2025/03/16 12:53] – Example flake URI aithermanuals:vps:userdata [2025/03/22 17:29] (current) aither
Line 1: Line 1:
 ====== User Data ====== ====== User Data ======
-When creating or reinstalling a VPS, vpsAdmin can upload a script or configuration for [[https://cloud-init.io/|cloud-init]] into the VPS. This script or configuration is applied on the first startup of the VPS. We support three formats for the initial configuration:+When creating or reinstalling a VPS, vpsAdmin can upload a script or configuration for [[https://cloud-init.io/|cloud-init]] into the VPS. This script or configuration is applied on the first startup of the VPS. We support these formats for the initial configuration:
  
   * [[#script|script]]   * [[#script|script]]
Line 12: Line 12:
  
 For development and testing, you can deploy a stored configuration to a VPS at any time: For development and testing, you can deploy a stored configuration to a VPS at any time:
-**vpsAdmin** -> **VPS** -> **User data** -> Edit an entry from the list, then use the **Deploy to VPS** form.+**vpsAdmin** -> **VPS** -> **User data** -> Edit an entry from the list, then use the **Deploy to VPS** form. This action will only create the script/configuration files inside the VPS, it will not run/apply 
 +it.
  
 ===== Configuration Formats ===== ===== Configuration Formats =====
Line 154: Line 155:
  
 ==== NixOS Flake URI ==== ==== NixOS Flake URI ====
-Upon VPS startup, the command ''nixos-rebuild --flake $flake_uri'' is executed. This allows you to easily deploy a configuration that is publicly available, for example, on GitHub.+Upon VPS startup, the command ''nixos-rebuild switch --flake $flake_uri'' is executed. This allows you to easily deploy a configuration that is publicly available, for example, on GitHub.
  
 Example configuration: Example configuration:
manuals/vps/userdata.1742129606.txt.gz · Last modified: 2025/03/16 12:53 by aither