Simple application VMs (hypervisor-based sandbox) based on Nix package manager.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Vladimir Serov c2413d0208 Updated installation instructions for NixOS 2 months ago
.github Follow redirect 3 months ago
docs Updated installation instructions for NixOS 2 months ago
dot-desktop-fuse Switch to buildGoModule 3 months ago
nixos ooops, nixos cannot compute 2 months ago
os Build appvm from ../default.nix 8 months ago
patches virt-viewer: use title as subtitle 8 months ago
.envrc [feat] added environment files 9 months ago
.gitignore Update .gitignore 8 months ago
LICENSE Add LICENSE 2 years ago
Makefile Support remove run with `nix run` 8 months ago
README.md Update screenshot 8 months ago
appvm.go fix: stat made qcow2 image creation return error every time 2 months ago
base.nix.go Do not specify session explicitly 6 months ago
builtin.go Update builtin chromium appvm description 9 months ago
default.nix nixpkgs-able default.nix 2 months ago
generate.go Avoid of changing current work directory 8 months ago
go.mod Switch to buildGoModule 3 months ago
go.sum Switch to buildGoModule 3 months ago
local.nix.template.go Do no enable anything in default local.nix 8 months ago
shell.nix [feat] added environment files 9 months ago
xml.go Add --network switch to select a networking model (#22) 5 months ago

README.md

Documentation Status Donate Donate

Nix application VMs: security through virtualization

Simple application VMs (hypervisor-based sandbox) based on Nix package manager.

Uses one read-only /nix directory for all appvms. So creating a new appvm (but not first) is just about one minute.

appvm screenshot

Installation

See related documentation.

Usage

Search for applications

$ appvm search chromium

Run application

$ appvm start chromium
$ # ... long wait for first time, because we need to collect a lot of packages

Synchronize remote repos for applications

$ appvm sync

You can customize local settings in ~/.config/appvm/nix/local.nix.

Default hotkey to release cursor: ctrl+alt.

Shared directory

$ ls appvm/chromium
foo.tar.gz
bar.tar.gz

Close VM

$ appvm stop chromium

Automatic ballooning

Add this command:

$ appvm autoballoon

to crontab like that:

$ crontab -l
* * * * * /home/user/dev/go/bin/appvm autoballoon