.github
.vscode
docs
hydra
keys
lib
modules
pkgs
systems
artemision
palatine-hill
attic
docker
wg
act-runner.nix
act_config.yaml
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
watchtower.bash
haproxy
acme.nix
configuration.nix
default.nix
firewall.nix
gitea.nix
hardware-changes.nix
hardware.nix
hydra.nix
loki.nix
minio.nix
networking.nix
nextcloud.nix
postgresql.nix
samba.nix
secrets.yaml
typhon.nix
vars.nix
zfs.nix
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";
|
|
};
|
|
};
|
|
};
|
|
}
|