formatting
This commit is contained in:
parent
58e40e58e8
commit
bae69545cd
2 changed files with 52 additions and 40 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{ config, inputs, lib, ... }:
|
||||
{
|
||||
config,
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.simple-nixos-mailserver.nixosModule
|
||||
|
|
@ -17,7 +22,7 @@
|
|||
loginAccounts = {
|
||||
"osbm@osbm.dev" = {
|
||||
hashedPasswordFile = "/persist/osbm.passwd"; # TODO: Make this into agenix secret
|
||||
aliases = ["postmaster@osbm.dev"];
|
||||
aliases = [ "postmaster@osbm.dev" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -35,9 +35,10 @@
|
|||
};
|
||||
})
|
||||
|
||||
|
||||
# vaultwarden reverse proxy via nginx
|
||||
(lib.mkIf (config.osbmModules.services.nginx.enable && config.osbmModules.services.vaultwarden.enable) {
|
||||
(lib.mkIf
|
||||
(config.osbmModules.services.nginx.enable && config.osbmModules.services.vaultwarden.enable)
|
||||
{
|
||||
services.nginx.virtualHosts."bitwarden.osbm.dev" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
|
|
@ -45,10 +46,16 @@
|
|||
proxyPass = "http://localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||
};
|
||||
};
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
# impermanence with vaultwarden
|
||||
(lib.mkIf (config.osbmModules.services.vaultwarden.enable && config.osbmModules.hardware.disko.zfs.root.impermanenceRoot) {
|
||||
(lib.mkIf
|
||||
(
|
||||
config.osbmModules.services.vaultwarden.enable
|
||||
&& config.osbmModules.hardware.disko.zfs.root.impermanenceRoot
|
||||
)
|
||||
{
|
||||
environment.persistence."/persist" = {
|
||||
directories = [
|
||||
{
|
||||
|
|
@ -59,7 +66,7 @@
|
|||
}
|
||||
];
|
||||
};
|
||||
})
|
||||
}
|
||||
)
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue