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’).
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||||
|
|
||||||
{ config, inputs, pkgs, lib, ... }:
|
{ config, inputs, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
pubkeys = import ../../data/pubkeys.nix;
|
pubkeys = import ../../data/pubkeys.nix;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
@ -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 = ''
|
||||||
|
|
|
||||||
|
|
@ -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"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue