Did this work?
parent
01f88e9051
commit
31adf4f3a6
|
@ -37,26 +37,26 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"traefik.acmeEmail" = {
|
"traefik/acmeEmail" = {
|
||||||
owner = "traefik";
|
owner = "traefik";
|
||||||
format = "dotenv";
|
# format = "dotenv";
|
||||||
};
|
};
|
||||||
"traefik.CLOUDFLARE_EMAIL" = {
|
"traefik/CLOUDFLARE_EMAIL" = {
|
||||||
owner = "traefik";
|
owner = "traefik";
|
||||||
format = "dotenv";
|
# format = "dotenv";
|
||||||
};
|
};
|
||||||
"traefik.CLOUDFLARE_DNS_API_TOKEN" = {
|
"traefik/CLOUDFLARE_DNS_API_TOKEN" = {
|
||||||
owner = "traefik";
|
owner = "traefik";
|
||||||
format = "dotenv";
|
# format = "dotenv";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.traefik = {
|
services.traefik = {
|
||||||
enable = true;
|
enable = true;
|
||||||
environmentFiles = [
|
environmentFiles = [
|
||||||
config.sops.secrets."traefik.acmeEmail".path
|
config.sops.secrets."traefik/acmeEmail".path
|
||||||
config.sops.secrets."traefik.CLOUDFLARE_EMAIL".path
|
config.sops.secrets."traefik/CLOUDFLARE_EMAIL".path
|
||||||
config.sops.secrets."traefik.CLOUDFLARE_DNS_API_TOKEN".path
|
config.sops.secrets."traefik/CLOUDFLARE_DNS_API_TOKEN".path
|
||||||
];
|
];
|
||||||
|
|
||||||
staticConfigOptions = {
|
staticConfigOptions = {
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
sops.defaultSopsFile = ./secrets + "/${hostConfig.hostname}.yaml";
|
sops.defaultSopsFile = ./secrets + "/${hostConfig.hostname}.yaml";
|
||||||
|
sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||||
# Disable automatic pgp key generation based on ssh keys
|
# Disable automatic pgp key generation based on ssh keys
|
||||||
sops.gnupg.sshKeyPaths = [ ];
|
sops.gnupg.sshKeyPaths = [ ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue