created vars.nix for jeeves and set up envvars

This commit is contained in:
Richie Cahill
2024-06-27 21:38:29 -04:00
parent e6cacdccc1
commit e0f2d2a856
8 changed files with 70 additions and 26 deletions

View File

@ -1,4 +1,7 @@
{ config, ... }:
let
vars = import ../vars.nix;
in
{
users = {
users.postgres = {
@ -15,7 +18,7 @@
postgres = {
image = "postgres:16";
ports = [ "5432:5432" ];
volumes = [ "/zfs/media/databases/postgres:/var/lib/postgresql/data" ];
volumes = [ "${vars.media_database}/postgres:/var/lib/postgresql/data" ];
environment = {
POSTGRES_USER = "admin";
POSTGRES_DB = "archive";