2020-02-02 01:43:27 +00:00
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
NixOS
|
|
|
|
-----
|
|
|
|
|
2020-07-14 03:23:28 +00:00
|
|
|
First, clone this repo. Then do this:
|
|
|
|
|
2020-02-02 01:43:27 +00:00
|
|
|
/etc/nixos/configuration.nix::
|
|
|
|
|
2020-07-14 03:23:28 +00:00
|
|
|
imports = [
|
|
|
|
/path/to/repo/nixos
|
|
|
|
];
|
|
|
|
|
2021-12-19 23:56:42 +00:00
|
|
|
virtualisation.appvm = {
|
2020-02-02 01:43:27 +00:00
|
|
|
enable = true;
|
2020-07-14 03:23:28 +00:00
|
|
|
user = "${username}";
|
2020-02-02 01:43:27 +00:00
|
|
|
};
|
|
|
|
|
2020-07-14 03:23:28 +00:00
|
|
|
This is a temporary solution until appvm is upstreamed to nixpkgs or Nix flakes are released.
|
2020-02-02 01:43:27 +00:00
|
|
|
|
2020-06-18 15:27:16 +00:00
|
|
|
Ubuntu 20.04
|
2020-02-02 01:43:27 +00:00
|
|
|
------
|
|
|
|
|
|
|
|
Requirements::
|
|
|
|
|
|
|
|
sudo apt install virt-manager curl git
|
|
|
|
echo user = "\"$USER\"" | sudo tee -a /etc/libvirt/qemu.conf
|
|
|
|
echo '/var/tmp/** rwlk,' | sudo tee -a /etc/apparmor.d/local/abstractions/libvirt-qemu
|
2020-06-18 15:27:16 +00:00
|
|
|
curl -L https://nixos.org/nix/install | sh
|
2020-02-02 01:43:27 +00:00
|
|
|
systemctl reboot
|
|
|
|
|
|
|
|
Use latest stable nixpkgs channel::
|
|
|
|
|
2020-04-01 07:39:23 +00:00
|
|
|
nix-channel --add https://nixos.org/channels/nixos-20.03 nixpkgs
|
2020-02-02 01:43:27 +00:00
|
|
|
nix-channel --update
|
|
|
|
|
|
|
|
Install appvm::
|
|
|
|
|
|
|
|
nix-env -if https://code.dumpstack.io/tools/appvm/archive/master.tar.gz
|