homelab framework module init (everything is a mess)
This commit is contained in:
parent
0347f4d325
commit
bcbcc8b17b
94 changed files with 7289 additions and 436 deletions
|
|
@ -5,7 +5,7 @@
|
|||
nix run github:nix-community/nixos-generators -- -f proxmox -c configuration.nix
|
||||
```
|
||||
|
||||
## Update to proxmox
|
||||
## Upload to proxmox
|
||||
```
|
||||
scp /nix/store/jvwxp7agny9979fglf76s0ca9m2h6950-proxmox-nixos-cloud-init/vzdump-qemu-nixos-cloud-init.vma.zst root@192.168.1.206:/var/lib/vz/dump
|
||||
```
|
||||
|
|
@ -16,3 +16,6 @@ qmrestore /var/lib/vz/dump/vzdump-qemu-nixos-cloud-init.vma.zst 9000 --unique tr
|
|||
|
||||
qm template 9000
|
||||
```
|
||||
|
||||
## Future
|
||||
Maybe look into nixos-everywhere like done here https://github.com/solomon-b/nixos-config
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
module "sandbox_vm" {
|
||||
source = "./modules/nixos-vm"
|
||||
|
||||
vmid = 123
|
||||
name = "sandbox"
|
||||
target_node = var.pm_node
|
||||
sshkeys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICUP7m8jZJiclZGfSje8CeBYFhX10SrdtjYziuChmj1X plasmagoat@macbook-air"
|
||||
cipassword = "$6$rounds=4096$h9zcOYHvB.sy0Ff/$M4cbXjzqmJZ7xRTl3ILWXrg9PePqNzpv.L7MnvMrhcGieK3hrPniU5YEY2Z5/NC1n4QM7VLRSwyP9g9zdjp67/"
|
||||
vmid = 123
|
||||
name = "sandbox"
|
||||
target_node = var.pm_node
|
||||
sshkeys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICUP7m8jZJiclZGfSje8CeBYFhX10SrdtjYziuChmj1X plasmagoat@macbook-air"
|
||||
cipassword = "$6$rounds=4096$h9zcOYHvB.sy0Ff/$M4cbXjzqmJZ7xRTl3ILWXrg9PePqNzpv.L7MnvMrhcGieK3hrPniU5YEY2Z5/NC1n4QM7VLRSwyP9g9zdjp67/"
|
||||
# You can override any default variable here:
|
||||
# cpu_cores = 4
|
||||
# memory = 2048
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
provider "proxmox" {
|
||||
pm_tls_insecure = true
|
||||
pm_api_url = var.pm_api_url
|
||||
pm_api_token_id = var.pm_api_token_id
|
||||
pm_tls_insecure = true
|
||||
pm_api_url = var.pm_api_url
|
||||
pm_api_token_id = var.pm_api_token_id
|
||||
pm_api_token_secret = var.pm_api_token_secret
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
pm_api_url = "https://192.168.1.205:8006/api2/json"
|
||||
pm_api_token_id = "root@pam!opentofu"
|
||||
pm_api_token_secret = "7660e962-9240-44ea-b1dc-e5176caba450"
|
||||
|
||||
pm_node = "proxmox-01"
|
||||
# nixos_template_id = 9100
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
proxmox = {
|
||||
source = "Telmate/proxmox"
|
||||
source = "Telmate/proxmox"
|
||||
version = "3.0.2-rc01"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue