nixos/hosts/modules/server/sops.nix
2024-06-19 23:20:49 +02:00

32 lines
754 B
Nix

{
sops = {
age.keyFile = "/home/hadi/.config/sops/age/keys.txt";
defaultSopsFile = ../../../secrets/server.yaml;
defaultSopsFormat = "yaml";
secrets = {
sshconfig = {
path = "/home/hadi/.ssh/config";
owner = "hadi";
};
github-key = {
path = "/home/hadi/.ssh/github";
owner = "hadi";
};
nextcloud-adminpass = {
mode = "0444"; # FIXME
path = "/etc/nextcloud/adminpassFile";
};
cloudflare-apitoken = {
mode = "0444"; # FIXME
path = "/etc/cloudflare/apiToken";
};
# tailscaled-authKey = {
# path = "/etc/tailscale/authKey";
# owner = "tailscaled";
# group = "tailscaled";
# };
};
};
}