mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-10 02:54:39 -07:00
rm juicefs.env
This commit is contained in:
parent
6f3c9e41ea
commit
11d159cae5
1 changed files with 10 additions and 2 deletions
|
|
@ -16,7 +16,11 @@
|
|||
"/mnt/myjfs:/mnt/jfs:rw,rshared"
|
||||
"juice_juicefs_cache:/var/jfsCache:rw"
|
||||
];
|
||||
env_file = "/etc/nixos/secrets/juicefs.env";
|
||||
environment = {
|
||||
POSTGRES_USER = "death916";
|
||||
POSTGRES_PASSWORD = builtins.readFile /etc/nixos/secrets/postgres_password;
|
||||
POSTGRES_DB = "juicefs";
|
||||
};
|
||||
cmd = [
|
||||
"sh"
|
||||
"-c"
|
||||
|
|
@ -59,7 +63,11 @@
|
|||
};
|
||||
virtualisation.oci-containers.containers."postgres-for-juicefs" = {
|
||||
image = "postgres:alpine";
|
||||
env_file = "/etc/nixos/secrets/juicefs.env";
|
||||
environment = {
|
||||
POSTGRES_USER = "death916";
|
||||
POSTGRES_PASSWORD = builtins.readFile /etc/nixos/secrets/postgres_password;
|
||||
POSTGRES_DB = "juicefs";
|
||||
};
|
||||
volumes = [
|
||||
"/home/death916/docker/volumes/postgres:/var/lib/postgresql/data:rw"
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue