Arion: Add dashboard

This commit is contained in:
GHOSCHT 2024-03-07 16:57:10 +01:00
parent 8e27d7112b
commit 61c6788047
Signed by: ghoscht
GPG key ID: 2C2C1C62A5388E82
4 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,30 @@
{pkgs, ...}: {
project.name = "dashboard";
networks.dmz = {
name = "dmz";
external = true;
};
services = {
homarr.service = {
image = "ghcr.io/ajnart/homarr:latest";
container_name = "homarr";
labels = {
"traefik.enable" = "true";
"traefik.http.routers.homarr.entrypoints" = "websecure";
"traefik.http.routers.homarr.rule" = "Host(`dashboard.ghoscht.com`)";
"traefik.http.routers.homarr.tls" = "true";
"traefik.http.routers.homarr.tls.certresolver" = "letsencrypt";
};
volumes = [
"/home/ghoscht/.docker/dashboard/homarr_data:/app/data/configs"
"/home/ghoscht/.docker/dashboard/homarr_icons:/app/public/imgs"
];
restart = "always";
networks = [
"dmz"
];
};
};
}

View file

@ -0,0 +1,6 @@
# Instead of pinning Nixpkgs, we can opt to use the one in NIX_PATH
import <nixpkgs> {
# We specify the architecture explicitly. Use a Linux remote builder when
# calling arion from other platforms.
system = "x86_64-linux";
}

View file

@ -0,0 +1,7 @@
{config, ...}: {
virtualisation.arion = {
projects.dashboard.settings = {
imports = [./arion-compose.nix];
};
};
}

View file

@ -14,6 +14,7 @@
./git
./passwords
./media
./dashboard
];
environment.systemPackages = with pkgs; [arion];