nixos-config/machines/sops.nix

38 lines
818 B
Nix
Raw Normal View History

2024-08-25 09:45:58 +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 = {
2024-08-25 09:45:58 +00:00
owner = "root";
2024-01-07 13:41:01 +00:00
};
singbox_jp_server = {
2024-08-25 09:45:58 +00:00
owner = "root";
2024-01-07 13:41:01 +00:00
};
singbox_password = {
2024-08-25 09:45:58 +00:00
owner = "root";
2024-01-07 13:41:01 +00:00
};
singbox_uuid = {
2024-08-25 09:45:58 +00:00
owner = "root";
2024-01-07 13:41:01 +00:00
};
private_dns_address = {
2024-08-25 09:45:58 +00:00
owner = "root";
2024-01-07 13:41:01 +00:00
};
2023-12-01 14:22:43 +00:00
};
2024-08-25 09:45:58 +00:00
secrets.grafana_cloud_api = lib.mkIf config.services.prometheus.enable { owner = "prometheus"; };
};
};
2023-11-28 13:38:50 +00:00
}