Isolated application VMs on NixOS with appvm

Running applications inside a virtual machine could possibly be the most secure sandboxing approach. appvm is a small Go program developed by jollheef and cab404 to run apps seamlessly inside a virtual machine, similar to Quebes OS.

To configure permissions and install appvm, paste following code to your system configuration and enable it. Replace user onny with the username of your current running user.

services.virtualisation.appvm = {
  enable = true;
  user = "onny";
};

Now start the app with following command

appvm start chromium

If everything worked, the virtual machine including the app should start like this

Note that appvm is an experimental project with no guarantee on stability or security.

Currently the app and module is not yet available in a stable repository but should hopefully land in NixOS 22.05 or later.

💬 Are you interested in our work or have some questions? Join us in our public Signal chat pi crew 👋
🪙 If you like our work or want to supprot us, you can donate MobileCoins to our address.

Leave a Reply

Your email address will not be published. Required fields are marked *