Arion: Add dashboard
This commit is contained in:
parent
8e27d7112b
commit
61c6788047
4 changed files with 44 additions and 0 deletions
30
hosts/franz/arion/dashboard/arion-compose.nix
Normal file
30
hosts/franz/arion/dashboard/arion-compose.nix
Normal 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"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
6
hosts/franz/arion/dashboard/arion-pkgs.nix
Normal file
6
hosts/franz/arion/dashboard/arion-pkgs.nix
Normal 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";
|
||||||
|
}
|
7
hosts/franz/arion/dashboard/default.nix
Normal file
7
hosts/franz/arion/dashboard/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{config, ...}: {
|
||||||
|
virtualisation.arion = {
|
||||||
|
projects.dashboard.settings = {
|
||||||
|
imports = [./arion-compose.nix];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -14,6 +14,7 @@
|
||||||
./git
|
./git
|
||||||
./passwords
|
./passwords
|
||||||
./media
|
./media
|
||||||
|
./dashboard
|
||||||
];
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [arion];
|
environment.systemPackages = with pkgs; [arion];
|
||||||
|
|
Loading…
Reference in a new issue