42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{ 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 = "none";
|
|
|
|
host = "0.0.0.0";
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 4444 ];
|
|
|
|
system.stateVersion = "25.05";
|
|
};
|
|
};
|
|
};
|
|
}
|