From 32c78d10a8e941fdeef4618739d65acc14b825cd Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 13:42:32 +0000 Subject: [PATCH 01/17] fix admin panel errors --- homelab/forgejo/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homelab/forgejo/default.nix b/homelab/forgejo/default.nix index 4669bfc..a27d434 100644 --- a/homelab/forgejo/default.nix +++ b/homelab/forgejo/default.nix @@ -11,9 +11,9 @@ in lfs.enable = true; settings = { server = { - #DOMAIN = "git.example.com"; + DOMAIN = "git.ahoneybun.net"; # You need to specify this to remove the port from URLs in the web UI. - #ROOT_URL = "https://${srv.DOMAIN}/"; + ROOT_URL = "https://${srv.DOMAIN}/"; HTTP_PORT = 3001; }; # You can temporarily allow registration to create an admin user. From 3d6d6979388bb47641af0b8e4c59408a47f9e2d7 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:28:50 +0000 Subject: [PATCH 02/17] update gollum --- homelab/gollum/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/homelab/gollum/default.nix b/homelab/gollum/default.nix index b5d9025..e96d878 100644 --- a/homelab/gollum/default.nix +++ b/homelab/gollum/default.nix @@ -2,7 +2,8 @@ { services.gollum = { - enable = true; - no-edit = true; + enable = true; + no-edit = true; + stateDir = "/mnt/DATA/Wiki"; }; } \ No newline at end of file From 2f509c032aa49329e22f0edce7e7d87f8d6e1a65 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:33:52 +0000 Subject: [PATCH 03/17] Edit default.nix --- homelab/cloudflared/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homelab/cloudflared/default.nix b/homelab/cloudflared/default.nix index 4120cbc..55f50f0 100644 --- a/homelab/cloudflared/default.nix +++ b/homelab/cloudflared/default.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, config, ... }: +{ config, pkgs, lib, ... }: { services = { From 65136e669b51a77bc860c83c98fd88b599dd94c8 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:48:16 +0000 Subject: [PATCH 04/17] update cloudflare subdomains --- homelab/cloudflared/default.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/homelab/cloudflared/default.nix b/homelab/cloudflared/default.nix index 55f50f0..0fc9fb3 100644 --- a/homelab/cloudflared/default.nix +++ b/homelab/cloudflared/default.nix @@ -9,14 +9,19 @@ credentialsFile = "{{/path/to/UUID.json}}"; default = "http_status:404"; ingress = { - "ahoneybun.net" = "http://localhost:80"; # Nginx http - "www.ahoneybun.net" = "http://localhost:80"; # Nginx https - "status.ahoneybun.net" = "http://localhost:8082"; # Homepage Dashboard - "photos.ahoneybun.net" = "http://localhost:2342"; # PhotoPrism - "git.ahoneybun.net" = "http://localhost:3001"; # Forgejo - "wiki.ahoneybun.net" = "http://localhost:4567"; # Gollum - "books.ahoneybun.net" = "http://localhost:5000"; # Kavita - "videos.ahoneybun.net" = "http://localhost:8096"; # Jellyfin + "ahoneybun.net" = "http://localhost:80"; + "www.ahoneybun.net" = "http://localhost:80"; + "photos.ahoneybun.net" = "http://localhost:2342"; + "hydra.ahoneybun.net" = "http://localhost:3000"; + "git.ahoneybun.net" = "http://localhost:3001"; + "music.ahoneybun.net" = "http://localhost:4533"; + "wiki.ahoneybun.net" = "http://localhost:4567"; + "books.ahoneybun.net" = "http://localhost:8080"; + "audiobookshelf.ahoneybun.net" = "http://localhost:8000"; + "home.ahoneybun.net" = "http://localhost:8082"; + "bin.ahoneybun.net" = "http://localhost:8088"; + "videos.ahoneybun.net" = "http://localhost:8096"; + "status.ahoneybun.net" = "http://localhost:61208"; }; }; }; From 027b7049365e6c31563fd0ac1e01b46f08cb660d Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:55:36 +0000 Subject: [PATCH 05/17] update homepage-dashboard --- homelab/homepage-dashboard/default.nix | 87 ++++++++++++++++++-------- 1 file changed, 62 insertions(+), 25 deletions(-) diff --git a/homelab/homepage-dashboard/default.nix b/homelab/homepage-dashboard/default.nix index 40818aa..88d982e 100644 --- a/homelab/homepage-dashboard/default.nix +++ b/homelab/homepage-dashboard/default.nix @@ -1,14 +1,14 @@ -{ lib, pkgs, config, ... }: - { services.homepage-dashboard = { enable = true; settings = { + language = "en"; title = "Honeycutt Homelab"; - background = "https://images.unsplash.com/photo-1502790671504-542ad42d5189?auto=format&fit=crop&w=2560&q=80"; + #background = "https://w.wallhaven.cc/full/l8/wallhaven-l85z2l.jpg"; + color = "neutral"; headerStyle = "boxed"; layout = { - media = { style = "row"; columns = 3; }; + media = { style = "row"; columns = 4; }; infra = { style = "row"; columns = 2; }; games = { style = "row"; columns = 1; }; }; @@ -21,24 +21,62 @@ { media = [ { - Jellyfin = { - icon = "jellyfin.png"; - href = "URL:8096"; - description = "media management"; + Navidrome = { + icon = "navidrome.png"; + href = "https://music.ahoneybun.net"; + description = "music player"; }; } { - Kavita = { - icon = "kavita.png"; - href = "URL:5000"; - description = "book management"; + Jellyfin = { + icon = "jellyfin.png"; + href = "https://videos.ahoneybun.net"; + description = "media player"; + widget = { + type = "jellyfin"; + url = "https://videos.ahoneybun.net"; + key = ""; + enableNowPlaying = "false"; + enableBlocks = "true"; + }; + }; + } + { + Komga = { + icon = "komga.png"; + href = "https://books.ahoneybun.net"; + description = "book reader"; + widget = { + type = "komga"; + url = "https://books.ahoneybun.net"; + username = ""; + password = ""; + }; }; } { PhotoPrism = { icon = "photoprism.png"; - href = "URL:2342"; - description = "photo management"; + href = "https://photos.ahoneybun.net"; + description = "photo viewer"; + widget = { + type = "photoprism"; + url = "https://photos.ahoneybun.net"; + username = ""; + password = ""; + }; + }; + } + { + Audiobookshelf = { + icon = "audiobookshelf.png"; + href = "https://audiobookshelf.ahoneybun.net"; + description = "audiobook player"; + widget = { + type = "audiobookshelf"; + url = "https://audiobookshelf.ahoneybun.net"; + key = ""; + }; }; } ]; @@ -46,17 +84,17 @@ { infra = [ { - Hydra = { - icon = "hydra.png"; - href = "URL:3000"; - description = "the Nix-based continuous build system"; + Forgejo = { + icon = "forgejo.png"; + href = "https://git.ahoneybun.net"; + description = "a lightweight software forge, with a highlight on being completely free software"; }; } { - Forgejo = { - icon = "forgejo.png"; - href = "URL:3001"; - description = "a lightweight software forge, with a highlight on being completely free software"; + Gollum = { + icon = "gollum.png"; + href = "https://wiki.ahoneybun.net"; + description = "a simple, Git-powered wiki for many kinds of markup and content."; }; } ]; @@ -66,17 +104,16 @@ { Minecraft = { icon = "minecraft.png"; - href = "URL:25565"; + href = "IP:25565"; description = "stack some blocks"; widget = { type = "minecraft"; - url = "udp://URL:25565"; + url = "udp://IP:25565"; }; }; } ]; } ]; - }; } \ No newline at end of file From d91fc7ef85c328cb7412ea3dbe73722efe8a9552 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:56:03 +0000 Subject: [PATCH 06/17] Add new directory --- homelab/gatus/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 homelab/gatus/.gitkeep diff --git a/homelab/gatus/.gitkeep b/homelab/gatus/.gitkeep new file mode 100644 index 0000000..e69de29 From 5701ab7b18f72e832ad440c66ff1a3d14902ba38 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:56:20 +0000 Subject: [PATCH 07/17] add gatus --- homelab/gatus/default.nix | 64 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 homelab/gatus/default.nix diff --git a/homelab/gatus/default.nix b/homelab/gatus/default.nix new file mode 100644 index 0000000..bb5bd92 --- /dev/null +++ b/homelab/gatus/default.nix @@ -0,0 +1,64 @@ +{ config, pkgs, lib, ... }: + +{ + services.gatus = { + enable = true; + openFirewall = true; + settings = { + web.port = 61208; + endpoints = [ + { + name = "Personal Site"; + url = "https://ahoneybun.net"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + "[RESPONSE_TIME] < 300" + ]; + } + { + name = "Jellyfin"; + url = "https://videos.ahoneybun.net/health"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + "[BODY] == Healthy" + "[RESPONSE_TIME] < 300" + ]; + } + { + name = "Navidrome"; + url = "https://music.ahoneybun.net"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + { + name = "Forgejo"; + url = "https://git.ahoneybun.net/"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + { + name = "PhotoPrism"; + url = "https://photos.ahoneybun.net"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + { + name = "Audiobookself"; + url = "https://audiobookshelf.ahoneybun.net/"; + interval = "5m"; + conditions = [ + "[STATUS] == 200" + ]; + } + ]; + }; + }; +} \ No newline at end of file From 6b4b50cb07658fff0d7f9157cc822e52149c3ec3 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:56:47 +0000 Subject: [PATCH 08/17] Add new directory --- homelab/ahoneybun-net/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 homelab/ahoneybun-net/.gitkeep diff --git a/homelab/ahoneybun-net/.gitkeep b/homelab/ahoneybun-net/.gitkeep new file mode 100644 index 0000000..e69de29 From 0f105108ef6a2a9dcfd722923f867b3f4553c9bb Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:57:00 +0000 Subject: [PATCH 09/17] add personal website --- homelab/ahoneybun-net/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 homelab/ahoneybun-net/default.nix diff --git a/homelab/ahoneybun-net/default.nix b/homelab/ahoneybun-net/default.nix new file mode 100644 index 0000000..eb8393b --- /dev/null +++ b/homelab/ahoneybun-net/default.nix @@ -0,0 +1,20 @@ +{ config, pkgs, lib, ... }: + +{ + services.nginx = { + enable = true; + virtualHosts."ahoneybun.net" = { + root = "/mnt/DATA/Website/ahoneybun.net/public"; + locations."/" = { + extraConfig = '' + default_type text/html; + ''; + }; + locations."~* \.atom\.xml$" = { + extraConfig = '' + types { } default_type "application/atom+xml; charset=utf-8"; + ''; + }; + }; + }; +} \ No newline at end of file From b915a9678e91a9cb049c4bf007497897e4048230 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:57:29 +0000 Subject: [PATCH 10/17] Add new directory --- homelab/komga/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 homelab/komga/.gitkeep diff --git a/homelab/komga/.gitkeep b/homelab/komga/.gitkeep new file mode 100644 index 0000000..e69de29 From a53e35d1af0861c1804fbc3037b691f0b9fced93 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:57:44 +0000 Subject: [PATCH 11/17] add komga --- homelab/komga/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 homelab/komga/default.nix diff --git a/homelab/komga/default.nix b/homelab/komga/default.nix new file mode 100644 index 0000000..0f9fe3b --- /dev/null +++ b/homelab/komga/default.nix @@ -0,0 +1,8 @@ +{ config, pkgs, lib, ... }: + +{ + services.komga = { + enable = true; + openFirewall = true; + }; +} \ No newline at end of file From c0ac1fad0d49577c68de1469e366f6c8f2078c00 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:57:56 +0000 Subject: [PATCH 12/17] Delete default.nix --- homelab/nginx/default.nix | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 homelab/nginx/default.nix diff --git a/homelab/nginx/default.nix b/homelab/nginx/default.nix deleted file mode 100644 index afcc286..0000000 --- a/homelab/nginx/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ lib, pkgs, config, ... }: - -{ - services.nginx = { - enable = true; - virtualHosts."ahoneybun.net" = { - root = "/mnt/DATA/Website/ahoneybun.net/public"; - locations."/" = { - extraConfig = '' - default_type text/html; - ''; - }; - }; - }; -} From 3773a8dd9418033e7aefbe95b56158ce1240a65e Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:58:18 +0000 Subject: [PATCH 13/17] Add new directory --- homelab/navidrome/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 homelab/navidrome/.gitkeep diff --git a/homelab/navidrome/.gitkeep b/homelab/navidrome/.gitkeep new file mode 100644 index 0000000..e69de29 From 7c388a7248ac1150e3b6f9c2ab133ef9d9026dbb Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:58:30 +0000 Subject: [PATCH 14/17] add navidrome --- homelab/navidrome/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 homelab/navidrome/default.nix diff --git a/homelab/navidrome/default.nix b/homelab/navidrome/default.nix new file mode 100644 index 0000000..5ab96f4 --- /dev/null +++ b/homelab/navidrome/default.nix @@ -0,0 +1,14 @@ +{ config, pkgs, lib, ... }: + +{ + services.navidrome = { + enable = true; + user = "aaronh"; + group = "navidrome"; + openFirewall = true; + settings = { + Address = "0.0.0.0"; + MusicFolder = "/mnt/DATA/Media/Music"; + }; + }; +} \ No newline at end of file From 3fa1a3f05043695163ebb7dfe56c82704a29fa92 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:59:01 +0000 Subject: [PATCH 15/17] Add new directory --- homelab/audiobookshelf/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 homelab/audiobookshelf/.gitkeep diff --git a/homelab/audiobookshelf/.gitkeep b/homelab/audiobookshelf/.gitkeep new file mode 100644 index 0000000..e69de29 From ed059f4726246d683016203233166d74d29ce5e9 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 14:59:16 +0000 Subject: [PATCH 16/17] add audiobookshelf --- homelab/audiobookshelf/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 homelab/audiobookshelf/default.nix diff --git a/homelab/audiobookshelf/default.nix b/homelab/audiobookshelf/default.nix new file mode 100644 index 0000000..b410422 --- /dev/null +++ b/homelab/audiobookshelf/default.nix @@ -0,0 +1,8 @@ +{ config, pkgs, lib, ... }: + +{ + services.audiobookshelf = { + enable = true; + openFirewall = true; + }; +} \ No newline at end of file From b4a3f9c9ec849f03f68243c258221c72ff67e188 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt Date: Tue, 25 Feb 2025 15:12:05 +0000 Subject: [PATCH 17/17] Edit configuration.nix --- hosts/x86_64/edi/configuration.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/hosts/x86_64/edi/configuration.nix b/hosts/x86_64/edi/configuration.nix index 3e71813..2f89ba3 100644 --- a/hosts/x86_64/edi/configuration.nix +++ b/hosts/x86_64/edi/configuration.nix @@ -79,12 +79,9 @@ networking.hostName = "edi"; networking.firewall = { enable = true; - # 2342 = PhotoPrism - # 3000 = Hydra - # 5000 = Kavita - # 8096 = Jellyfin # 11434 = Ollama - allowedTCPPorts = [ 80 443 2342 3000 5000 8096 9091 11434 ]; + # 25565 = Minecraft + allowedTCPPorts = [ 80 443 2342 9091 11434 25565 ]; }; nixpkgs.config.permittedInsecurePackages = [