cc-sandbox: add ssh

This commit is contained in:
illustris
2026-03-11 20:19:58 +05:30
parent b9117bf8ad
commit 0b3b5c5063

View File

@@ -90,7 +90,22 @@
mem = 8192; mem = 8192;
extraModules = [({ pkgs, ... }: { extraModules = [({ pkgs, ... }: {
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix = {
registry.nix-mcp = {
from = {
type = "github";
owner = "illustris";
repo = "nix-mcp";
};
to = nix-mcp;
};
settings.experimental-features = [ "nix-command" "flakes" ];
};
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAm3qVkTmuYEayM3Vstruv8w5SM4K9riokAxUcpothhO illustris@illustris-thinkpad"
];
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
claude-code-bin claude-code-bin
@@ -103,6 +118,9 @@
microvm = { microvm = {
writableStoreOverlay = "/nix/.rw-store"; writableStoreOverlay = "/nix/.rw-store";
forwardPorts = [
{ from = "host"; host.port = 2222; guest.port = 22; }
];
shares = [ shares = [
{ {
proto = "9p"; proto = "9p";