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 = [
|
imports = [
|
||||||
inputs.simple-nixos-mailserver.nixosModule
|
inputs.simple-nixos-mailserver.nixosModule
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,10 @@
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
# vaultwarden reverse proxy via nginx
|
# 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" = {
|
services.nginx.virtualHosts."bitwarden.osbm.dev" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
|
|
@ -45,10 +46,16 @@
|
||||||
proxyPass = "http://localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
proxyPass = "http://localhost:${toString config.services.vaultwarden.config.ROCKET_PORT}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
|
)
|
||||||
|
|
||||||
# impermanence with vaultwarden
|
# 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" = {
|
environment.persistence."/persist" = {
|
||||||
directories = [
|
directories = [
|
||||||
{
|
{
|
||||||
|
|
@ -59,7 +66,7 @@
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
})
|
}
|
||||||
|
)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue