This commit is contained in:
parent
1d5efe0099
commit
dd27570137
4 changed files with 16 additions and 1 deletions
12
modules/system/homelab/code.nix
Normal file
12
modules/system/homelab/code.nix
Normal 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; [];
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -69,6 +69,7 @@
|
||||||
services = [
|
services = [
|
||||||
[ "PocketID" "authentik" "https://auth.${homelab.domain}" "http://localhost:1411/" ]
|
[ "PocketID" "authentik" "https://auth.${homelab.domain}" "http://localhost:1411/" ]
|
||||||
[ "Forgejo" "forgejo" "https://git.${homelab.domain}" "http://localhost:5080/" ]
|
[ "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/" ]
|
[ "AdGuardHome" "adguard" "https://dns.proxy.${homelab.domain}" "http://localhost:8088/" ]
|
||||||
[ "Traefik" "traefikproxy" "https://dynamic.proxy.${homelab.domain}/dashboard/" "" ]
|
[ "Traefik" "traefikproxy" "https://dynamic.proxy.${homelab.domain}/dashboard/" "" ]
|
||||||
[ "Immich" "immich" "https://gallery.proxy.${homelab.domain}" "http://localhost:2283/" ]
|
[ "Immich" "immich" "https://gallery.proxy.${homelab.domain}" "http://localhost:2283/" ]
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@
|
||||||
"home" = d "http://home.dns.${homelab.domain}:8123";
|
"home" = d "http://home.dns.${homelab.domain}:8123";
|
||||||
|
|
||||||
"containers" = da "http://localhost:5001";
|
"containers" = da "http://localhost:5001";
|
||||||
|
"code" = da "http://localhost:8443";
|
||||||
"dns" = da "http://localhost:8088";
|
"dns" = da "http://localhost:8088";
|
||||||
|
|
||||||
"gallery" = d "http://localhost:2283";
|
"gallery" = d "http://localhost:2283";
|
||||||
|
|
@ -122,4 +123,4 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@ in {
|
||||||
./homelab/auth.nix
|
./homelab/auth.nix
|
||||||
./homelab/pass.nix
|
./homelab/pass.nix
|
||||||
./homelab/dash.nix
|
./homelab/dash.nix
|
||||||
|
./homelab/code.nix
|
||||||
./homelab/dns.nix
|
./homelab/dns.nix
|
||||||
./homelab/git.nix
|
./homelab/git.nix
|
||||||
./homelab/ai.nix
|
./homelab/ai.nix
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue