feat: add 'hcloud' module

This commit is contained in:
2026-01-18 10:02:20 +01:00
parent 00e5c92c1e
commit d6459d0d84
3 changed files with 50 additions and 21 deletions

View File

@@ -28,6 +28,7 @@ in
"email_work".owner = config.users.users.${cfg.username}.name;
"anki_sync_user".owner = config.users.users.${cfg.username}.name;
"anki_sync_key".owner = config.users.users.${cfg.username}.name;
"hcloud".owner = config.users.users.${cfg.username}.name;
};
templates."taskrc.d/sync" = {
@@ -56,6 +57,18 @@ in
email = ${config.sops.placeholder."email_work"}
'';
};
templates."hcloud/cli.toml" = {
owner = config.users.users.${cfg.username}.name;
path = "/home/${cfg.username}/.config/hcloud/cli.toml";
content = ''
active_context = "server"
[[contexts]]
name = "server"
token = "${config.sops.placeholder."hcloud"}"
'';
};
};
};
}