Compare commits

..

2 commits

Author SHA1 Message Date
a2bcdcde32
traefik: enable api
All checks were successful
flake check / check (push) Successful in 3m15s
fmt check / check (push) Successful in 40s
2023-11-11 16:28:21 -05:00
9e84ffc5ee
yuki: switch to homepage, init wallos 2023-11-11 16:27:11 -05:00
8 changed files with 50 additions and 39 deletions

View file

@ -209,7 +209,7 @@
staticConfigOptions = { staticConfigOptions = {
log.level = "DEBUG"; log.level = "DEBUG";
api.dashboard = true; api.dashboard = true;
api.insecure = false; api.insecure = true;
global = { global = {
checkNewVersion = false; checkNewVersion = false;
sendAnonymousUsage = false; sendAnonymousUsage = false;

View file

@ -1,14 +0,0 @@
_: {
virtualisation.oci-containers.containers.dashdot = {
image = "mauricenino/dashdot:sha-4bef01c";
ports = [
"4000:3001"
];
volumes = [
"/home/notoh/docker/dashdot:/mnt/host:ro"
];
environment = {
DASHDOT_ENABLE_CPU_TEMPS = "true";
};
};
}

View file

@ -3,9 +3,10 @@
./restic.nix ./restic.nix
./traefik.nix ./traefik.nix
./stash.nix ./stash.nix
./homarr.nix
./dashdot.nix
./jellyfin.nix ./jellyfin.nix
./minecraft.nix ./minecraft.nix
./wallos.nix
./homepage.nix
./glances.nix
]; ];
} }

View file

@ -0,0 +1,15 @@
_: {
networking.firewall.allowedTCPPorts = [61208 61209];
virtualisation.oci-containers.containers.glances = {
image = "nicolargo/glances";
ports = [
"61208-61209:61208-61209"
];
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
];
environment = {
GLANCES_OPT = "-w";
};
};
}

View file

@ -1,13 +0,0 @@
_: {
virtualisation.oci-containers.containers.homarr = {
image = "ghcr.io/ajnart/homarr:0.14.0";
ports = [
"7575:7575"
];
volumes = [
"/home/notohh/docker/homarr/configs:/app/data/configs"
"/home/notohh/docker/homarr/icons:/app/public/icons"
"/home/notohh/docker/homarr/data:/data"
];
};
}

View file

@ -0,0 +1,7 @@
_: {
services.homepage-dashboard = {
enable = true;
listenPort = 7676;
openFirewall = true;
};
}

View file

@ -10,21 +10,16 @@ _: {
entryPoints = ["websecure"]; entryPoints = ["websecure"];
service = "api@internal"; service = "api@internal";
}; };
homarr = { homepage = {
rule = "Host(`dashboard.internal.flake.sh`)"; rule = "Host(`dashboard.internal.flake.sh`)";
entrypoints = ["web"]; entrypoints = ["web"];
service = "homarr"; service = "homepage";
}; };
stash = { stash = {
rule = "Host(`stash.internal.flake.sh`)"; rule = "Host(`stash.internal.flake.sh`)";
entrypoints = ["web"]; entrypoints = ["web"];
service = "stash"; service = "stash";
}; };
dashdot = {
rule = "Host(`dashdot.yuki.internal.flake.sh`)";
entrypoints = ["web"];
service = "dashdot";
};
jellyfin = { jellyfin = {
rule = "Host(`jellyfin.internal.flake.sh`)"; rule = "Host(`jellyfin.internal.flake.sh`)";
entrypoints = ["web"]; entrypoints = ["web"];
@ -35,13 +30,18 @@ _: {
entrypoints = ["web"]; entrypoints = ["web"];
service = "jellyseerr"; service = "jellyseerr";
}; };
wallos = {
rule = "Host(`wallos.internal.flake.sh`)";
entrypoints = ["web"];
service = "wallos";
};
}; };
services = { services = {
stash.loadBalancer.servers = [{url = "http://localhost:9999";}]; stash.loadBalancer.servers = [{url = "http://localhost:9999";}];
homarr.loadBalancer.servers = [{url = "http://localhost:7575";}]; homepage.loadBalancer.servers = [{url = "http://localhost:7676";}];
dashdot.loadBalancer.servers = [{url = "http://localhost:4000";}];
jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}]; jellyfin.loadBalancer.servers = [{url = "http://localhost:8096";}];
jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}]; jellyseerr.loadBalancer.servers = [{url = "http://localhost:5055";}];
wallos.loadBalancer.servers = [{url = "http://localhost:8282";}];
}; };
}; };
}; };

View file

@ -0,0 +1,15 @@
_: {
virtualisation.oci-containers.containers.wallos = {
image = "bellamy/wallos";
ports = [
"8282:80"
];
volumes = [
"/home/notohh/docker/wallos/db:/var/www/html/db"
"/home/notohh/docker/wallos/logos:/var/www/html/images/uploads/logos"
];
environment = {
TZ = "America/New_York";
};
};
}