add book stack and vault warden (untested)
This commit is contained in:
parent
1ba5443757
commit
787ffe0fa0
24
nixos/book-stack.nix
Normal file
24
nixos/book-stack.nix
Normal 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";
|
||||
# };
|
||||
};
|
||||
}
|
|
@ -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
14
nixos/vault-warden.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue