diff --git a/homelab/ahoneybun-net/.gitkeep b/homelab/ahoneybun-net/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/homelab/audiobookshelf/.gitkeep b/homelab/audiobookshelf/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/homelab/audiobookshelf/default.nix b/homelab/audiobookshelf/default.nix deleted file mode 100644 index b410422..0000000 --- a/homelab/audiobookshelf/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - services.audiobookshelf = { - enable = true; - openFirewall = true; - }; -} \ No newline at end of file diff --git a/homelab/cloudflared/default.nix b/homelab/cloudflared/default.nix index 0fc9fb3..4120cbc 100644 --- a/homelab/cloudflared/default.nix +++ b/homelab/cloudflared/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ lib, pkgs, config, ... }: { services = { @@ -9,19 +9,14 @@ credentialsFile = "{{/path/to/UUID.json}}"; default = "http_status:404"; ingress = { - "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"; + "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 }; }; }; diff --git a/homelab/forgejo/default.nix b/homelab/forgejo/default.nix index a27d434..4669bfc 100644 --- a/homelab/forgejo/default.nix +++ b/homelab/forgejo/default.nix @@ -11,9 +11,9 @@ in lfs.enable = true; settings = { server = { - DOMAIN = "git.ahoneybun.net"; + #DOMAIN = "git.example.com"; # 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. diff --git a/homelab/gatus/.gitkeep b/homelab/gatus/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/homelab/gatus/default.nix b/homelab/gatus/default.nix deleted file mode 100644 index bb5bd92..0000000 --- a/homelab/gatus/default.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ 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 diff --git a/homelab/gollum/default.nix b/homelab/gollum/default.nix index e96d878..b5d9025 100644 --- a/homelab/gollum/default.nix +++ b/homelab/gollum/default.nix @@ -2,8 +2,7 @@ { services.gollum = { - enable = true; - no-edit = true; - stateDir = "/mnt/DATA/Wiki"; + enable = true; + no-edit = true; }; } \ No newline at end of file diff --git a/homelab/homepage-dashboard/default.nix b/homelab/homepage-dashboard/default.nix index 88d982e..40818aa 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://w.wallhaven.cc/full/l8/wallhaven-l85z2l.jpg"; - color = "neutral"; + background = "https://images.unsplash.com/photo-1502790671504-542ad42d5189?auto=format&fit=crop&w=2560&q=80"; headerStyle = "boxed"; layout = { - media = { style = "row"; columns = 4; }; + media = { style = "row"; columns = 3; }; infra = { style = "row"; columns = 2; }; games = { style = "row"; columns = 1; }; }; @@ -20,63 +20,25 @@ services = [ { media = [ - { - Navidrome = { - icon = "navidrome.png"; - href = "https://music.ahoneybun.net"; - description = "music player"; - }; - } { 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"; - }; + href = "URL:8096"; + description = "media management"; }; } { - Komga = { - icon = "komga.png"; - href = "https://books.ahoneybun.net"; - description = "book reader"; - widget = { - type = "komga"; - url = "https://books.ahoneybun.net"; - username = ""; - password = ""; - }; + Kavita = { + icon = "kavita.png"; + href = "URL:5000"; + description = "book management"; }; } { PhotoPrism = { icon = "photoprism.png"; - 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 = ""; - }; + href = "URL:2342"; + description = "photo management"; }; } ]; @@ -84,17 +46,17 @@ { infra = [ { - Forgejo = { - icon = "forgejo.png"; - href = "https://git.ahoneybun.net"; - description = "a lightweight software forge, with a highlight on being completely free software"; + Hydra = { + icon = "hydra.png"; + href = "URL:3000"; + description = "the Nix-based continuous build system"; }; } { - Gollum = { - icon = "gollum.png"; - href = "https://wiki.ahoneybun.net"; - description = "a simple, Git-powered wiki for many kinds of markup and content."; + Forgejo = { + icon = "forgejo.png"; + href = "URL:3001"; + description = "a lightweight software forge, with a highlight on being completely free software"; }; } ]; @@ -104,16 +66,17 @@ { Minecraft = { icon = "minecraft.png"; - href = "IP:25565"; + href = "URL:25565"; description = "stack some blocks"; widget = { type = "minecraft"; - url = "udp://IP:25565"; + url = "udp://URL:25565"; }; }; } ]; } ]; + }; } \ No newline at end of file diff --git a/homelab/komga/.gitkeep b/homelab/komga/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/homelab/komga/default.nix b/homelab/komga/default.nix deleted file mode 100644 index 0f9fe3b..0000000 --- a/homelab/komga/default.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ config, pkgs, lib, ... }: - -{ - services.komga = { - enable = true; - openFirewall = true; - }; -} \ No newline at end of file diff --git a/homelab/navidrome/.gitkeep b/homelab/navidrome/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/homelab/navidrome/default.nix b/homelab/navidrome/default.nix deleted file mode 100644 index 5ab96f4..0000000 --- a/homelab/navidrome/default.nix +++ /dev/null @@ -1,14 +0,0 @@ -{ 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 diff --git a/homelab/ahoneybun-net/default.nix b/homelab/nginx/default.nix similarity index 57% rename from homelab/ahoneybun-net/default.nix rename to homelab/nginx/default.nix index eb8393b..afcc286 100644 --- a/homelab/ahoneybun-net/default.nix +++ b/homelab/nginx/default.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, ... }: +{ lib, pkgs, config, ... }: { services.nginx = { @@ -10,11 +10,6 @@ default_type text/html; ''; }; - locations."~* \.atom\.xml$" = { - extraConfig = '' - types { } default_type "application/atom+xml; charset=utf-8"; - ''; - }; }; }; -} \ No newline at end of file +} diff --git a/hosts/x86_64/edi/configuration.nix b/hosts/x86_64/edi/configuration.nix index 2f89ba3..3e71813 100644 --- a/hosts/x86_64/edi/configuration.nix +++ b/hosts/x86_64/edi/configuration.nix @@ -79,9 +79,12 @@ networking.hostName = "edi"; networking.firewall = { enable = true; + # 2342 = PhotoPrism + # 3000 = Hydra + # 5000 = Kavita + # 8096 = Jellyfin # 11434 = Ollama - # 25565 = Minecraft - allowedTCPPorts = [ 80 443 2342 9091 11434 25565 ]; + allowedTCPPorts = [ 80 443 2342 3000 5000 8096 9091 11434 ]; }; nixpkgs.config.permittedInsecurePackages = [