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.
dump_stack() 63cd3fc79d
GitHub Actions: Use latest stable nixpkgs channel
1 hour ago
.github GitHub Actions: Use latest stable nixpkgs channel 1 hour ago
docs Move installation guide to docs 2 weeks ago
dot-desktop-fuse Handle case when there's no actions in .desktop file 1 month ago
os Build appvm from ../default.nix 1 month ago
patches virt-viewer: use title as subtitle 2 weeks ago
.envrc [feat] added environment files 1 month ago
.gitignore Update .gitignore 1 month ago
LICENSE Add LICENSE 1 year ago
Makefile Support remove run with `nix run` 1 month ago
README.md Update screenshot 2 weeks ago
appvm.go Copy templates at start of tool not vm 1 month ago
base.nix.go User host user id 1 month ago
builtin.go Update builtin chromium appvm description 1 month ago
default.nix virt-viewer: use title as subtitle 2 weeks ago
deps.nix Add missed deps 1 month ago
generate.go Avoid of changing current work directory 1 month ago
go.mod go modules 1 month ago
go.sum go modules 1 month ago
local.nix.template.go Do no enable anything in default local.nix 1 month ago
shell.nix [feat] added environment files 1 month ago
xml.go Use default machine 3 weeks 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