cc-sandbox: add ssh
This commit is contained in:
20
flake.nix
20
flake.nix
@@ -90,7 +90,22 @@
|
||||
mem = 8192;
|
||||
extraModules = [({ pkgs, ... }: {
|
||||
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; [
|
||||
claude-code-bin
|
||||
@@ -103,6 +118,9 @@
|
||||
|
||||
microvm = {
|
||||
writableStoreOverlay = "/nix/.rw-store";
|
||||
forwardPorts = [
|
||||
{ from = "host"; host.port = 2222; guest.port = 22; }
|
||||
];
|
||||
shares = [
|
||||
{
|
||||
proto = "9p";
|
||||
|
||||
Reference in New Issue
Block a user