code-server
This commit is contained in:
@@ -273,6 +273,7 @@
|
|||||||
};
|
};
|
||||||
rustdesk.enable = false; #broken
|
rustdesk.enable = false; #broken
|
||||||
pihole.enable = true; #broken
|
pihole.enable = true; #broken
|
||||||
|
code-server.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
37
system-config/services/containers/code-server/default.nix
Normal file
37
system-config/services/containers/code-server/default.nix
Normal file
@@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -16,5 +16,6 @@
|
|||||||
./ollama
|
./ollama
|
||||||
./n8n
|
./n8n
|
||||||
./wyoming
|
./wyoming
|
||||||
|
./code-server
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user