feat(MOMO): setup syncthing and vaultwarden
This commit is contained in:
parent
7968a18271
commit
6ca4dd9e57
33 changed files with 419 additions and 149 deletions
27
hosts/MOMO/services/vaultwarden.nix
Normal file
27
hosts/MOMO/services/vaultwarden.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
age.secrets.environments-vaultwarden = {
|
||||
file = ../../../secrets/environments/vaultwarden.age;
|
||||
};
|
||||
|
||||
users.users.vaultwarden = {
|
||||
description = "Vaultwarden Service";
|
||||
home = "/var/lib/bitwarden_rs";
|
||||
useDefaultShell = true;
|
||||
isSystemUser = true;
|
||||
};
|
||||
|
||||
services.vaultwarden = {
|
||||
enable = true;
|
||||
dbBackend = "postgresql";
|
||||
environmentFile = config.age.secrets.environments-vaultwarden.path;
|
||||
config = {
|
||||
DOMAIN = "http://vaultwarden.dryb.org";
|
||||
SIGNUPS_ALLOWED = false;
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_PORT = 8005;
|
||||
DATABASE_URL = "postgresql:///vaultwarden";
|
||||
WEB_VAULT_ENABLED = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue