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>.
@@ -39,7 +39,7 @@ in {
}
```
## Development Shell (Direnv)
## Development Shell
```bash
# First time setup
+24 -23
View File
@@ -23,32 +23,34 @@ let
{
imports = [ "${modulesPath}/virtualisation/qemu-vm.nix" ];
# virtualisation
virtualisation.graphics = false;
virtualisation.memorySize = 4096;
virtualisation.cores = 4;
virtualisation = {
graphics = false;
memorySize = 4096;
cores = 4;
virtualisation.sharedDirectories = {
workspace = {
source = ''"$WORKSPACE_DIR"'';
target = "/workspace";
securityModel = "none";
};
config = {
source = ''"$CLAUDE_VM_CONFIG_DIR"'';
target = "/mnt/claude-vm-config";
securityModel = "none";
sharedDirectories = {
workspace = {
source = ''"$WORKSPACE_DIR"'';
target = "/workspace";
securityModel = "none";
};
config = {
source = ''"$CLAUDE_VM_CONFIG_DIR"'';
target = "/mnt/claude-vm-config";
securityModel = "none";
};
};
};
# boot / console
boot.kernelParams = [ "console=ttyS0" ];
boot.loader.grub.enable = false;
boot.initrd.kernelModules = [
"9p"
"9pnet_virtio"
];
# user
boot = {
kernelParams = [ "console=ttyS0" ];
loader.grub.enable = false;
initrd.kernelModules = [
"9p"
"9pnet_virtio"
];
};
users.users.claude = {
isNormalUser = true;
home = "/home/claude";
@@ -56,7 +58,6 @@ let
};
services.getty.autologinUser = "claude";
# Disable unnecessary services:
services.udisks2.enable = false;
programs.command-not-found.enable = false;