Switch from coreos to nixos

This commit is contained in:
2025-04-25 15:08:56 +10:00
parent 472b198618
commit 793d77dce9
51 changed files with 2874 additions and 5 deletions

View File

@@ -0,0 +1,35 @@
terraform {
required_providers {
system = {
source = "neuspaces/system"
version = "0.4.0"
}
}
}
provider "system" {
ssh {
host = "jaglan-beta-m42"
user = "core"
agent = true
}
}
resource "system_file" "static_content" {
path = "/etc/consul.d/consul.hcl"
content = "Hello world!"
}
resource "terraform_data" "jaglan-beta" {
provisioner "file" {
source = "consul.hcl"
#destination = "/etc/consul.d/consul.hcl"
destination = "./consul.hcl"
}
connection {
type = "ssh"
user = "core"
host = "jaglan-beta-m42"
}
}