add book stack and vault warden (untested)

This commit is contained in:
Anish Lakhwara 2022-09-28 22:01:07 +10:00
parent 1ba5443757
commit 787ffe0fa0
3 changed files with 40 additions and 0 deletions

24
nixos/book-stack.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, ... }:
{
services.bookstack = {
enable = true;
hostname = "wiki.mutualaid.work";
# appKeyFile = "/run/secrets/bookstack-app-key";
nginx = {
serverName = "wiki.mutualaid.work";
listenAddresses = [ "0.0.0.0" ];
forceSSL = true;
enableACME = true;
};
# Not sure this is right?
# Probably will need more configuration and testing
# mail = {
# host = "migadu.com";
# user = "infra@mutualaid.work";
# port = ???;
# from = "bookstack@mutualaid.work";
# driver = "smtp";
# };
};
}

View file

@ -14,6 +14,8 @@
# Import your generated (nixos-generate-config) hardware configuration
./hardware-configuration.nix
./vault-warden.nix
./book-stack.nix
# You can also split up your configuration and import pieces of it here.
];

14
nixos/vault-warden.nix Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
services.vaultwarden = {
enable = true;
config = {
domain = "https://vault.mutualaid.work:8443";
signupsAllowed = false;
rocketPort = 8222;
rocketLog = "critical";
};
dbBackend = "sqlite";
};
}