You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() |
1 year ago | |
---|---|---|
.github | 2 years ago | |
docs | 1 year ago | |
dot-desktop-fuse | 3 years ago | |
nixos | 3 years ago | |
os | 3 years ago | |
patches | 3 years ago | |
.envrc | 3 years ago | |
.gitignore | 3 years ago | |
LICENSE | 5 years ago | |
Makefile | 3 years ago | |
README.md | 1 year ago | |
appvm.go | 1 year ago | |
base.nix.go | 1 year ago | |
builtin.go | 3 years ago | |
default.nix | 1 year ago | |
generate.go | 3 years ago | |
go.mod | 2 years ago | |
go.sum | 2 years ago | |
local.nix.template.go | 3 years ago | |
shell.nix | 3 years ago | |
xml.go | 1 year ago |
README.md
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.
Installation
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