nixos-shell
nixos-shell copied to clipboard
Spawns lightweight nixos vms in a shell
I'd like to be able to launch my VMs to use an in-memory disk or run in some way as to not commit any changes to my real drive
Most `nix` commands and tools seem to have a default search path that they look at, including `nixos-shell`. For example `nixos-shell --flake .#foo` searches at `.#nixosConfigurations.foo` first. However, most `nix`...
Trying to use the example config `vm-forward.nix` produces this error: ```console qemu-kvm: -netdev user,id=user.0,hostfwd=tcp::2222-:22: Duplicate ID 'user.0' for netdev ``` This is on a nixpkgs-unstable system. I can use `QEMU_NET_OPTS`...
Instead of dropping into the login shell, would it be possible to create a CLI mode wherein the VM is launched, root shell entered and the given command is run,...
Instead of mounting the host home directory
what is needed?
I'm getting the following error: ``` warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixos' does not exist, ignorg warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring error: file 'nixpkgs' was...
`nixos-shell` will inherit the `TERM` variable from the user environment which leads to a broken terminal in some situations. For example, I have `TERM=rxvt-unicode-256color`, which is inherited and leads to...
I'm running 6.9.12. Below is the error log. ``` [FAILED] Failed to start DHCP Client. See 'systemctl status dhcpcd.service' for details. [FAILED] Failed to start SSH Daemon. See 'systemctl status...