5 ms·
You mean like https://wiki.nixos.org/wiki/NixOS_Containers https://wiki.nixos.org/wiki/NixOS_Containers ?
by cpuguy83 7mo ago
You mean like https://wiki.nixos.org/wiki/NixOS_Containers https://wiki.nixos.org/wiki/NixOS_Containers ?
- whazor 7mo agoThere is also https://microvm-nix.github.io/microvm.nix/ https://microvm-nix.github.io/microvm.nix/ if you want increased isolation.
- sshine 7mo agoI can recommend MicroVM.nix, since it allows for multiple VM runtimes like QEMU, Firecracker, etc. There's also nixos-shell for ad-hoc virtual machines: https://github.com/mic92/nixos-shell https://github.com/mic92/nixos-shell
- rendaw 7mo agoCan you do those ad-hoc though? I was looking into this too. I feel like it requires a system config change, apply, and then you need to do container start + machinectl login to actually get a shell. That's definitely what I want... most of the time.
- furryrain 7mo agoYes, NixOS containers can be run in: * declarative mode, where your guest config is defined within your host config, or * imperative mode, where your guest NixOS config is defined in a separate file. You can choose to reuse config between host and guest config files, of course. It sounds like you want imperative containers. Here's the docs: https://nixos.org/manual/nixos/stable/#sec-imperative-containers https://nixos.org/manual/nixos/stable/#sec-imperative-contai...
- rendaw 7mo agoOh I totally missed that!