fix: Clean up default.nix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
+12
-11
@@ -23,12 +23,12 @@ 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";
|
||||||
@@ -40,15 +40,17 @@ let
|
|||||||
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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user