setup bonfire configuration but don't actually import it
This commit is contained in:
parent
2c1dc0899c
commit
c83147355a
19
nixos/bonfire.nix
Normal file
19
nixos/bonfire.nix
Normal 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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -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.
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue