Skip to content

Commit

Permalink
Reference the secret in hedgedoc service
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Jun 21, 2024
1 parent 3a21580 commit 8f6dd1d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nixos/hedgedoc.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{ config, ... }:

let
domain = "pad.srid.ca";
port = 9112;
in
{
age.secrets."hedgedoc.env" = {
file = ../secrets/hedgedoc.env.age;
owner = "hedgedoc";
};
services.hedgedoc = {
enable = true;

# GitHub secrets set in colmena (see flake.nix)
environmentFile = "/run/keys/hedgedoc.env";
environmentFile = config.age.secrets."hedgedoc.env".path;

settings = {
# URL config
Expand Down

0 comments on commit 8f6dd1d

Please sign in to comment.