fix: bitwarden persistence

This commit is contained in:
Philipp Hochkamp 2022-04-12 03:59:35 +02:00
parent b530960d55
commit 2601467bee
2 changed files with 11 additions and 3 deletions

View file

@ -24,6 +24,14 @@ in
networking.bridges."br0".interfaces = [ ]; networking.bridges."br0".interfaces = [ ];
networking.hostId = "7b4c2932"; networking.hostId = "7b4c2932";
boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ]; boot.binfmt.emulatedSystems = [ "aarch64-linux" "armv7l-linux" ];
services.nginx.virtualHosts."h.hailsatan.eu" = {
useACMEHost = "hailsatan.eu";
addSSL = true;
locations = {
"/".proxyPass = "http://192.168.122.76:8123";
"/".proxyWebsockets = true;
};
};
boot.initrd.network = { boot.initrd.network = {
enable = true; enable = true;
postCommands = '' postCommands = ''

View file

@ -13,7 +13,7 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.vaultwarden = { services.vaultwarden = {
enable = true; enable = true;
# backupDir = "/backups/vaultwarden"; #backupDir = "/persistent/backups/vaultwarden";
config = { config = {
domain = "https://${cfg.domainPrefix}.${domain}"; domain = "https://${cfg.domainPrefix}.${domain}";
signupsAllowed = false; signupsAllowed = false;
@ -43,7 +43,7 @@ in
]; ];
}; };
ragon.persist.extraDirectories = [ ragon.persist.extraDirectories = [
"/var/lib/vaultwarden" "/var/lib/bitwarden_rs"
]; ];
}; };
} }