From a2616fdd6eea45959aad9743979b445cecdd09aa Mon Sep 17 00:00:00 2001 From: Nathan Date: Sat, 2 Aug 2025 00:18:35 -0500 Subject: [PATCH] code-server --- .../configuration/homebox/default.nix | 1 + .../containers/code-server/default.nix | 37 +++++++++++++++++++ system-config/services/containers/default.nix | 1 + 3 files changed, 39 insertions(+) create mode 100644 system-config/services/containers/code-server/default.nix diff --git a/system-config/configuration/homebox/default.nix b/system-config/configuration/homebox/default.nix index 5a83dd1..d441d64 100644 --- a/system-config/configuration/homebox/default.nix +++ b/system-config/configuration/homebox/default.nix @@ -273,6 +273,7 @@ }; rustdesk.enable = false; #broken pihole.enable = true; #broken + code-server.enable = true; }; }; }; diff --git a/system-config/services/containers/code-server/default.nix b/system-config/services/containers/code-server/default.nix new file mode 100644 index 0000000..346eb04 --- /dev/null +++ b/system-config/services/containers/code-server/default.nix @@ -0,0 +1,37 @@ +{ config, lib, ... }: { + + options.sysconfig.opts.virtualization.code-server.enable = lib.options.mkOption { + type = lib.types.bool; + default = false; + }; + + config = lib.mkIf config.sysconfig.opts.virtualization.code-server.enable { + + containers.code-server = { + + autoStart = true; + privateNetwork = true; + hostAddress = "192.168.100.10"; + localAddress = "192.168.100.29"; + + config = { + + services.code-server = { + enable = true; + + hashedPassword = "1$WFYzcW1TNmpYM1ZKU3lielNCaXAyRkF2K3FjPQ$bSeeV4bvL2uiDYKiQjBLJPAO13/gNjYVgw8YKFtTQDI"; + + disableUpdateCheck = true; + + disableTelemetry = true; + + disableGettingStartedOverride = true; + + auth = "password"; + }; + + system.stateVersion = "25.05"; + }; + }; + }; +} diff --git a/system-config/services/containers/default.nix b/system-config/services/containers/default.nix index 0f6a60d..0db268c 100644 --- a/system-config/services/containers/default.nix +++ b/system-config/services/containers/default.nix @@ -16,5 +16,6 @@ ./ollama ./n8n ./wyoming + ./code-server ]; }