flake: Initialise new repository
This commit is contained in:
commit
1eb25ada72
41 changed files with 1657 additions and 0 deletions
32
modules/nixos/vaultwarden.nix
Normal file
32
modules/nixos/vaultwarden.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
containers.vault = {
|
||||
autoStart = true;
|
||||
bindMounts = {
|
||||
"/var/backup/vaultwarden" = {
|
||||
hostPath = "/mnt/sdb1/vaultwarden";
|
||||
isReadOnly = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
services = {
|
||||
vaultwarden = {
|
||||
enable = true;
|
||||
backupDir = "/var/backup/vaultwarden";
|
||||
dbBackend = "postgresql";
|
||||
config = {
|
||||
# SIGNUPS_ALLOWED = false;
|
||||
};
|
||||
};
|
||||
|
||||
tailscale = {
|
||||
enable = true;
|
||||
useRoutingFeatures = "server";
|
||||
interfaceName = "userspace-networking";
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue