From 5f5668de5f09a173be6535d261f5f25dc8bd8608 Mon Sep 17 00:00:00 2001 From: Satria Date: Tue, 3 Mar 2026 14:46:11 +0700 Subject: [PATCH] add guacamole --- modules/system/homelab/dash.nix | 2 ++ modules/system/homelab/proxy.nix | 2 ++ modules/system/homelab/remote.nix | 19 +++++++++++++++++++ modules/system/server.nix | 1 + 4 files changed, 24 insertions(+) create mode 100644 modules/system/homelab/remote.nix diff --git a/modules/system/homelab/dash.nix b/modules/system/homelab/dash.nix index 7147de9..9ab9e48 100644 --- a/modules/system/homelab/dash.nix +++ b/modules/system/homelab/dash.nix @@ -59,6 +59,8 @@ [ "Forgejo" "forgejo" "https://git.proxy.${homelab.domain}" "http://localhost:5080/" ] [ "Dockge" "docker" "https://containers.proxy.${homelab.domain}" "http://localhost:5001/" ] [ "Ollama" "ollama" "https://ai.proxy.${homelab.domain}" "http://localhost:8080/" ] + [ "Guacamole" "guacamole" "https://remote.proxy.${homelab.domain}" "http://localhost:8085/" ] + [ "Immich" "immich" "https://gallery.proxy.${homelab.domain}" "http://localhost:2283/" ] ]; bookmarks = [ [ "Tailscale" "tailscale" "https://login.tailscale.com/" ] diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index bf0b1ba..cd72bbb 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -12,6 +12,8 @@ # "media" = { dest = "http://localhost:8096"; auth = false; }; "containers" = { dest = "http://localhost:5001"; auth = false; }; + "gallery" = { dest = "http://localhost:2283"; auth = false; }; + "remote" = { dest = "http://localhost:8085"; auth = false; }; "auth" = { dest = "http://localhost:1411"; auth = false; }; "cdn" = { dest = "http://localhost:3000"; auth = false; }; "git" = { dest = "http://localhost:5080"; auth = false; }; diff --git a/modules/system/homelab/remote.nix b/modules/system/homelab/remote.nix new file mode 100644 index 0000000..dff61a1 --- /dev/null +++ b/modules/system/homelab/remote.nix @@ -0,0 +1,19 @@ +{ ... }: { + services = { + guacamole-server = { + enable = true; + host = "127.0.0.1"; + port = 4822; + }; + guacamole-client = { + enable = true; + host = "127.0.0.1"; + port = 8085; + enableWebserver = true; + settings = { + guacd-hostname = "127.0.0.1"; + guacd-port = 4822; + }; + }; + }; +} \ No newline at end of file diff --git a/modules/system/server.nix b/modules/system/server.nix index 6b00a03..51aa927 100644 --- a/modules/system/server.nix +++ b/modules/system/server.nix @@ -2,6 +2,7 @@ imports = lib.mkIf (config.specialisation != {}) [ ./homelab/containers.nix ./homelab/gallery.nix + ./homelab/remote.nix # ./homelab/media.nix # wip ./homelab/share.nix ./homelab/proxy.nix