2024-01-07 13:41:01 +00:00
|
|
|
{ inputs, config, lib, ... }:
|
2023-04-19 06:16:39 +00:00
|
|
|
{
|
2023-11-28 13:38:50 +00:00
|
|
|
imports = [ inputs.sops-nix.nixosModules.sops ];
|
2024-01-07 13:41:01 +00:00
|
|
|
config = {
|
|
|
|
sops = {
|
|
|
|
defaultSopsFile = ./secrets.yaml;
|
|
|
|
# TODO: How to generate this key when bootstrap?
|
|
|
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
|
|
|
secrets = {
|
|
|
|
github_public_token = {
|
|
|
|
owner = "root";
|
|
|
|
};
|
|
|
|
singbox_sg_server = {
|
|
|
|
owner = "root";
|
|
|
|
};
|
|
|
|
singbox_jp_server = {
|
|
|
|
owner = "root";
|
|
|
|
};
|
|
|
|
singbox_password = {
|
|
|
|
owner = "root";
|
|
|
|
};
|
|
|
|
singbox_uuid = {
|
|
|
|
owner = "root";
|
|
|
|
};
|
|
|
|
private_dns_address = {
|
|
|
|
owner = "root";
|
|
|
|
};
|
2023-12-01 14:22:43 +00:00
|
|
|
};
|
2024-01-07 13:41:01 +00:00
|
|
|
secrets.grafana_cloud_api = lib.mkIf config.services.prometheus.enable {
|
|
|
|
owner = "prometheus";
|
2023-12-20 03:13:20 +00:00
|
|
|
};
|
2023-09-22 17:12:38 +00:00
|
|
|
};
|
2023-04-22 17:42:40 +00:00
|
|
|
};
|
2023-11-28 13:38:50 +00:00
|
|
|
}
|