fix: Clean up default.nix

This commit is contained in:
2026-03-10 17:58:10 +00:00
parent bebb6c5892
commit 558bb89523
2 changed files with 26 additions and 25 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
# Claude-Vm # Claude-VM
Shamelessly stole and refactored from <https://github.com/solomon-b/claude-vm>. Shamelessly stole and refactored from <https://github.com/solomon-b/claude-vm>.
@@ -39,7 +39,7 @@ in {
} }
``` ```
## Development Shell (Direnv) ## Development Shell
```bash ```bash
# First time setup # First time setup
+24 -23
View File
@@ -23,32 +23,34 @@ let
{ {
imports = [ "${modulesPath}/virtualisation/qemu-vm.nix" ]; imports = [ "${modulesPath}/virtualisation/qemu-vm.nix" ];
# virtualisation virtualisation = {
virtualisation.graphics = false; graphics = false;
virtualisation.memorySize = 4096; memorySize = 4096;
virtualisation.cores = 4; cores = 4;
virtualisation.sharedDirectories = { sharedDirectories = {
workspace = { workspace = {
source = ''"$WORKSPACE_DIR"''; source = ''"$WORKSPACE_DIR"'';
target = "/workspace"; target = "/workspace";
securityModel = "none"; securityModel = "none";
}; };
config = { config = {
source = ''"$CLAUDE_VM_CONFIG_DIR"''; source = ''"$CLAUDE_VM_CONFIG_DIR"'';
target = "/mnt/claude-vm-config"; target = "/mnt/claude-vm-config";
securityModel = "none"; securityModel = "none";
};
}; };
}; };
# boot / console boot = {
boot.kernelParams = [ "console=ttyS0" ]; kernelParams = [ "console=ttyS0" ];
boot.loader.grub.enable = false; loader.grub.enable = false;
boot.initrd.kernelModules = [ initrd.kernelModules = [
"9p" "9p"
"9pnet_virtio" "9pnet_virtio"
]; ];
# user };
users.users.claude = { users.users.claude = {
isNormalUser = true; isNormalUser = true;
home = "/home/claude"; home = "/home/claude";
@@ -56,7 +58,6 @@ let
}; };
services.getty.autologinUser = "claude"; services.getty.autologinUser = "claude";
# Disable unnecessary services:
services.udisks2.enable = false; services.udisks2.enable = false;
programs.command-not-found.enable = false; programs.command-not-found.enable = false;