forked from extern/nixos-wiki-infra
Merge #2
2: more treefmt r=Mic92 a=Mic92 Co-authored-by: Jörg Thalheim <joerg@thalheim.io>
This commit is contained in:
commit
820b0071b4
@ -1,6 +1,6 @@
|
|||||||
{ inputs, ... }: {
|
{ inputs, ... }: {
|
||||||
flake.nixosModules = {
|
flake.nixosModules = {
|
||||||
hcloud.imports = [
|
hcloud.imports = [
|
||||||
inputs.srvos.nixosModules.server
|
inputs.srvos.nixosModules.server
|
||||||
inputs.srvos.nixosModules.hardware-hetzner-cloud
|
inputs.srvos.nixosModules.hardware-hetzner-cloud
|
||||||
];
|
];
|
||||||
|
@ -1,3 +1 @@
|
|||||||
{...}: {
|
{ ... }: { }
|
||||||
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
terraform {
|
terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
hcloud = { source = "hetznercloud/hcloud" }
|
hcloud = { source = "hetznercloud/hcloud" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
variable "ssh_keys" {
|
variable "ssh_keys" {
|
||||||
type = map(string)
|
type = map(string)
|
||||||
description = "SSH public keys for admin user (name -> key)"
|
description = "SSH public keys for admin user (name -> key)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
terraform {
|
terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
netlify = { source = "AegirHealth/netlify" }
|
netlify = { source = "AegirHealth/netlify" }
|
||||||
hcloud = { source = "hetznercloud/hcloud" }
|
hcloud = { source = "hetznercloud/hcloud" }
|
||||||
local = { source = "hashicorp/local" }
|
local = { source = "hashicorp/local" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,37 +1,37 @@
|
|||||||
variable "server_type" {
|
variable "server_type" {
|
||||||
type = string
|
type = string
|
||||||
default = "cx21"
|
default = "cx21"
|
||||||
description = "Hetzner cloud server type"
|
description = "Hetzner cloud server type"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "server_location" {
|
variable "server_location" {
|
||||||
type = string
|
type = string
|
||||||
default = "hel1"
|
default = "hel1"
|
||||||
description = "Hetzner cloud server location"
|
description = "Hetzner cloud server location"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "netlify_dns_zone" {
|
variable "netlify_dns_zone" {
|
||||||
type = string
|
type = string
|
||||||
description = "Netlify DNS zone"
|
description = "Netlify DNS zone"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "nixos_vars_file" {
|
variable "nixos_vars_file" {
|
||||||
type = string
|
type = string
|
||||||
description = "File to write NixOS configuration variables to"
|
description = "File to write NixOS configuration variables to"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "nixos_flake_attr" {
|
variable "nixos_flake_attr" {
|
||||||
type = string
|
type = string
|
||||||
description = "NixOS configuration flake attribute"
|
description = "NixOS configuration flake attribute"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "domain" {
|
variable "domain" {
|
||||||
type = string
|
type = string
|
||||||
description = "Domain name"
|
description = "Domain name"
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "tags" {
|
variable "tags" {
|
||||||
type = map(string)
|
type = map(string)
|
||||||
default = {}
|
default = {}
|
||||||
description = "Tags to add to the server"
|
description = "Tags to add to the server"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user