infrastructure/hosts/kinda.sus.lol/secrets.nix

18 lines
465 B
Nix
Raw Normal View History

2023-04-12 12:47:22 +00:00
{ config, ... }:
{
sops.defaultSopsFile = ./secrets/nginx.yaml;
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
# Nginx
sops.secrets."services/nginx/admin.htpasswd" = {
mode = "0400";
owner = config.users.users.nginx.name;
group = config.users.users.nginx.group;
};
sops.secrets."services/nginx/ecchi.htpasswd" = {
mode = "0400";
owner = config.users.users.nginx.name;
group = config.users.users.nginx.group;
};
}