sops: move secrets to specific services

This commit is contained in:
notohh 2023-05-14 23:03:38 -04:00
parent a886511ca0
commit d714b3cdae
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 5 additions and 6 deletions

View file

@ -1,4 +1,6 @@
{config, ...}: { {...}: {
sops.secrets.foundry-username = {};
sops.secrets.foundry-password = {};
virtualisation.oci-containers.containers.foundryvtt = { virtualisation.oci-containers.containers.foundryvtt = {
image = "felddy/foundryvtt:release"; image = "felddy/foundryvtt:release";
volumes = [ volumes = [

View file

@ -1,6 +1,6 @@
{config, ...}: { {config, ...}: {
sops.secrets.cloudflare-api-key = {};
networking.firewall.allowedTCPPorts = [80 443 8080]; networking.firewall.allowedTCPPorts = [80 443 8080];
systemd.user.services.traefik.after = ["docker.service"]; systemd.user.services.traefik.after = ["docker.service"];
systemd.services.traefik = { systemd.services.traefik = {
environment = { environment = {

View file

@ -1,9 +1,6 @@
{config, ...}: { {...}: {
sops = { sops = {
defaultSopsFile = ../secrets/secrets.yaml; defaultSopsFile = ../secrets/secrets.yaml;
age.keyFile = "/home/notoh/.config/sops/age/keys.txt"; age.keyFile = "/home/notoh/.config/sops/age/keys.txt";
secrets.foundry-username = {};
secrets.foundry-password = {};
secrets.cloudflare-api-key = {};
}; };
} }