beherbergung/deployment/modules/sops.nix
Johannes Lötzsch 7e763ee267 deployment: sops + basicAuth
created with htpasswd from pkgs.apache2-utils

+ ensured the database is not seeded with test logins
2022-03-10 22:27:18 +01:00

16 lines
384 B
Nix

{ config, lib, pkgs, ... }:
{
sops.gnupg.sshKeyPaths = [ "/etc/ssh/ssh_host_rsa_key" ];
sops.defaultSopsFile = ../sops/secrets/default.json;
sops.defaultSopsFormat = "json";
## Nginx passwd (basic auth of frontend/search for defence in depth)
sops.secrets."nginx-passwd" = {
sopsFile = ../sops/secrets/nginx-passwd;
format = "binary";
owner = "nginx";
};
}