fix: bitwarden persistence
This commit is contained in:
parent
b530960d55
commit
2601467bee
2 changed files with 11 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, inputs, pkgs, lib, ... }:
|
||||
let
|
||||
let
|
||||
pubkeys = import ../../data/pubkeys.nix;
|
||||
in
|
||||
{
|
||||
|
|
@ -24,6 +24,14 @@ in
|
|||
networking.bridges."br0".interfaces = [ ];
|
||||
networking.hostId = "7b4c2932";
|
||||
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 = {
|
||||
enable = true;
|
||||
postCommands = ''
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ in
|
|||
config = lib.mkIf cfg.enable {
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
# backupDir = "/backups/vaultwarden";
|
||||
#backupDir = "/persistent/backups/vaultwarden";
|
||||
config = {
|
||||
domain = "https://${cfg.domainPrefix}.${domain}";
|
||||
signupsAllowed = false;
|
||||
|
|
@ -43,7 +43,7 @@ in
|
|||
];
|
||||
};
|
||||
ragon.persist.extraDirectories = [
|
||||
"/var/lib/vaultwarden"
|
||||
"/var/lib/bitwarden_rs"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue