feat: add cloud-config for user setup and update setup script for compatibility checks
Some checks failed
Nix Format Check / check-format (push) Failing after 38s

This commit is contained in:
2025-03-11 10:35:19 +01:00
parent a7b9dd4102
commit 7e1094dd7c
2 changed files with 30 additions and 5 deletions

22
cloud-config Normal file
View File

@@ -0,0 +1,22 @@
#cloud-config
# Create a user named menno with sudo privileges
users:
- name: menno
sudo: ALL=(ALL) NOPASSWD:ALL
groups: sudo, adm
shell: /bin/bash
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM+sKpcREOUjwMMSzEWAso6830wbOi8kUxqpuXWw5gHr menno_1password
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE22Hfx8wgkc57TXX1TCMHcNrCdjbfog5QeHFJfl7IeD menno_fallback
# Update package lists and install latest updates
package_update: true
package_upgrade: true
# Configure system to preserve hostname
preserve_hostname: false
hostname: mennos-vm
# Final message when cloud-init completes
final_message: "Cloud-init has finished setting up the system with user 'menno'. System boot completed after $UPTIME seconds."