add ffdl, foundry, haproxy, glances, and zfs vars

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-08-17 21:49:31 -04:00
parent 58906d95ea
commit b18438924b
16 changed files with 395 additions and 56 deletions

View File

@ -1,10 +1,14 @@
{ ... }:
let
vars = import ../vars.nix;
restic_path = "${vars.primary_backups}/restic";
in
{
virtualisation.oci-containers.containers = {
restic = {
image = "restic/rest-server:latest";
volumes = [ "/ZFS/ZFS-primary/backups/restic:/data" ];
volumes = [ "${restic_path}:/data" ];
environment = {
OPTIONS = "--prometheus --htpasswd-file /data/.htpasswd";
};
@ -23,8 +27,8 @@
];
volumes = [
"grafanadata:/var/lib/grafana"
"/ZFS/ZFS-primary/docker/restic/dashboards:/dashboards"
"/ZFS/ZFS-primary/docker/restic/grafana.ini:/etc/grafana/grafana.ini"
"${restic_path}/dashboards:/dashboards"
"${restic_path}/grafana.ini:/etc/grafana/grafana.ini"
];
environment = {
GF_USERS_DEFAULT_THEME = "dark";