diff --git a/modules/system/homelab/code.nix b/modules/system/homelab/code.nix new file mode 100644 index 0000000..52d5d7d --- /dev/null +++ b/modules/system/homelab/code.nix @@ -0,0 +1,12 @@ +{ pkgs, username, ... }: { + services.code-server = { + enable = true; + host = "127.0.0.1"; + port = 8443; + user = username; + disableTelemetry = true; + extensionsDir = "/mnt/data/code-server/extensions"; + userDataDit = "/mnt/data/code-server/user-data"; + extraPackages = with pkgs; []; + }; +} diff --git a/modules/system/homelab/dash.nix b/modules/system/homelab/dash.nix index 727faf4..9a32422 100644 --- a/modules/system/homelab/dash.nix +++ b/modules/system/homelab/dash.nix @@ -69,6 +69,7 @@ services = [ [ "PocketID" "authentik" "https://auth.${homelab.domain}" "http://localhost:1411/" ] [ "Forgejo" "forgejo" "https://git.${homelab.domain}" "http://localhost:5080/" ] + [ "CodeServer" "coder" "https://code.${homelab.domain}" "http://localhost:8443/" ] [ "AdGuardHome" "adguard" "https://dns.proxy.${homelab.domain}" "http://localhost:8088/" ] [ "Traefik" "traefikproxy" "https://dynamic.proxy.${homelab.domain}/dashboard/" "" ] [ "Immich" "immich" "https://gallery.proxy.${homelab.domain}" "http://localhost:2283/" ] diff --git a/modules/system/homelab/proxy.nix b/modules/system/homelab/proxy.nix index 84cf723..7afecfa 100644 --- a/modules/system/homelab/proxy.nix +++ b/modules/system/homelab/proxy.nix @@ -9,6 +9,7 @@ "home" = d "http://home.dns.${homelab.domain}:8123"; "containers" = da "http://localhost:5001"; + "code" = da "http://localhost:8443"; "dns" = da "http://localhost:8088"; "gallery" = d "http://localhost:2283"; @@ -122,4 +123,4 @@ in { }; }; }; -} \ No newline at end of file +} diff --git a/modules/system/server.nix b/modules/system/server.nix index daa3747..da48085 100644 --- a/modules/system/server.nix +++ b/modules/system/server.nix @@ -18,6 +18,7 @@ in { ./homelab/auth.nix ./homelab/pass.nix ./homelab/dash.nix + ./homelab/code.nix ./homelab/dns.nix ./homelab/git.nix ./homelab/ai.nix