feat: abstractions rework

This commit is contained in:
Kat Inskip 2022-09-18 10:09:32 -07:00
parent ec7571171b
commit 0a6085cb49
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
48 changed files with 798 additions and 1219 deletions

View file

@ -10,7 +10,11 @@
sensitive = true;
export = true;
};
acme.account = {
register = false;
emailAddress = "kat@inskip.me";
accountKeyPem = config.resources.acme_private_key.refAttr "private_key_pem";
};
providers.tailscale = {
inputs = {
api_key = config.variables.tailscale-apikey.ref;
@ -18,6 +22,14 @@
};
};
resources = {
acme_private_key = {
provider = "tls";
type = "private_key";
inputs = {
algorithm = "RSA";
rsa_bits = 4096;
};
};
tailnet_devices = {
type = "devices";
provider = "tailscale";