.github
.vscode
docs
hydra
keys
lib
modules
systems
artemision
bob
jeeves
jeeves-jr
palatine-hill
attic
docker
archiveteam.nix
books.nix
default.nix
firefly.nix
foundry.nix
glances.nix
haproxy.cfg
haproxy.nix
minecraft.nix
nextcloud.nix
postgres.nix
restic.nix
torr.nix
unifi.nix
keys
attic.nix
configuration.nix
default.nix
hardware.nix
hydra.nix
minio.nix
networking.nix
nextcloud.nix
secrets.yaml
services.nix
vars.nix
zfs.nix
rhapsody-in-green
users
utils
.envrc
.gitconfig
.gitignore
.sops.yaml
CONTRIBUTING.md
README.md
checks.nix
flake.lock
flake.nix
shell.nix
statix.toml
treefmt.toml
39 lines
885 B
Nix
39 lines
885 B
Nix
{ ... }:
|
|
|
|
let
|
|
vars = import ../vars.nix;
|
|
restic_path = "${vars.primary_backups}/restic";
|
|
in
|
|
{
|
|
virtualisation.oci-containers.containers = {
|
|
restic = {
|
|
image = "restic/rest-server:latest";
|
|
volumes = [ "${restic_path}:/data" ];
|
|
environment = {
|
|
OPTIONS = "--prometheus --htpasswd-file /data/.htpasswd";
|
|
};
|
|
ports = [ "8010:8000" ];
|
|
extraOptions = [
|
|
"--restart=always"
|
|
"--network=restic_restic"
|
|
];
|
|
};
|
|
|
|
grafana = {
|
|
image = "grafana/grafana:latest";
|
|
extraOptions = [
|
|
"--restart=always"
|
|
"--network=haproxy-net"
|
|
];
|
|
volumes = [
|
|
"grafanadata:/var/lib/grafana"
|
|
"${restic_path}/dashboards:/dashboards"
|
|
"${restic_path}/grafana.ini:/etc/grafana/grafana.ini"
|
|
];
|
|
environment = {
|
|
GF_USERS_DEFAULT_THEME = "dark";
|
|
};
|
|
};
|
|
};
|
|
}
|