move data to data drive
This commit is contained in:
parent
e4d1fdc40d
commit
a6c8935bf2
3 changed files with 9 additions and 0 deletions
7
modules/system/homelab/db.nix
Normal file
7
modules/system/homelab/db.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ pkgs, ... }: {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
dataDir = "/mnt/data/apps/postgresql";
|
||||
package = pkgs.postgresql_16;
|
||||
};
|
||||
}
|
||||
|
|
@ -5,6 +5,7 @@
|
|||
backupDir = "/mnt/data/apps/vaultwarden/backups";
|
||||
environmentFile = "/mnt/data/apps/vaultwarden/.env";
|
||||
config = {
|
||||
DATA_FOLDER = "/mnt/data/apps/vaultwarden/data";
|
||||
ROCKET_PORT = 8060;
|
||||
ROCKET_ADDRESS = "127.0.0.1";
|
||||
ROCKET_LOG = "critical";
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ in {
|
|||
./homelab/dns.nix
|
||||
./homelab/git.nix
|
||||
./homelab/ai.nix
|
||||
./homelab/db.nix
|
||||
|
||||
./core/swapfile.nix
|
||||
./core/oom.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue