add code-server
Some checks failed
Activate Homelab Configuration / rebuild (push) Failing after 4s

This commit is contained in:
Satria 2026-03-28 19:47:22 +07:00
commit dd27570137
4 changed files with 16 additions and 1 deletions

View file

@ -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; [];
};
}

View file

@ -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/" ]

View file

@ -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 {
};
};
};
}
}

View file

@ -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