refactor: Big internal refactor

This commit is contained in:
2026-04-01 06:18:57 +02:00
parent dfeb55375e
commit 8e7d0d3a5e
11 changed files with 240 additions and 201 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
use schemars::JsonSchema;
use serde::{Deserialize, Deserializer, Serialize};
use crate::get_talos_config_path;
use crate::get_talos_path;
#[derive(Debug, Deserialize, JsonSchema)]
#[serde(rename_all = "camelCase", untagged)]
@@ -18,7 +18,7 @@ where
let value = match secret {
SecretHelper::String(value) => value,
SecretHelper::File { file } => {
let path = get_talos_config_path().join("secrets").join(file);
let path = get_talos_path().join("secrets").join(file);
std::fs::read_to_string(path).unwrap().trim().to_owned()
}
};