setup bonfire configuration but don't actually import it

This commit is contained in:
Anish Lakhwara 2022-09-28 22:03:02 +10:00
parent 2c1dc0899c
commit c83147355a
2 changed files with 20 additions and 0 deletions

19
nixos/bonfire.nix Normal file
View file

@ -0,0 +1,19 @@
{pkgs, ... }:
{
services.bonfire = {
# you will need to expose bonfire with a reverse proxy, for example caddy
port = 4000;
package = pkgs.elixirBonfire;
dbName = "bonfire";
# the environment should contain a minimum of
# SECRET_KEY_BASE
# SIGNING_SALT
# ENCRYPTION_SALT
# RELEASE_COOKIE
# have a look into nix/module.nix for more details
# the way to deploy secrets is beyond this readme, but I would recommend agenix
environmentFile = "/run/secrets/bonfireEnv";
dbSocketDir = "/var/run/postgresql";
};
}

View file

@ -16,6 +16,7 @@
./hardware-configuration.nix ./hardware-configuration.nix
./vault-warden.nix ./vault-warden.nix
./book-stack.nix ./book-stack.nix
# ./bonfire.nix
# You can also split up your configuration and import pieces of it here. # You can also split up your configuration and import pieces of it here.
]; ];