From f55f187d087976f710150464efe25c63952841ec Mon Sep 17 00:00:00 2001 From: victor Date: Sun, 2 Oct 2022 16:04:25 +0200 Subject: [PATCH] add mastodon --- nixos/hosts/hades/default.nix | 1 - nixos/hosts/hades/mastodon/configuration.nix | 14 +++++++++++--- nixos/pkgs/glitch-soc/default.nix | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/nixos/hosts/hades/default.nix b/nixos/hosts/hades/default.nix index 731d29a..737ea04 100644 --- a/nixos/hosts/hades/default.nix +++ b/nixos/hosts/hades/default.nix @@ -180,7 +180,6 @@ hostname = "mastodon"; ip = "192.168.0.138"; mac = "52:60:8a:06:86:9c"; - nix = false; } { hostname = "lidarr"; diff --git a/nixos/hosts/hades/mastodon/configuration.nix b/nixos/hosts/hades/mastodon/configuration.nix index b695802..20d39db 100644 --- a/nixos/hosts/hades/mastodon/configuration.nix +++ b/nixos/hosts/hades/mastodon/configuration.nix @@ -14,7 +14,17 @@ in { package = pkgs.elasticsearch7; }; - vault-secrets.secrets.mastodon = { }; + vault-secrets.secrets.mastodon = { + services = [ "mastodon-init-dirs" "mastodon" ]; + }; + + # Append the init-dirs script to add AWS/Minio secrets + systemd.services.mastodon-init-dirs.script = '' + cat >> /var/lib/mastodon/.secrets_env <