NixOS

Download

Nix

Current version

2.3.7

1.Quick install

The quickest way to install Nix is to open a terminal and run the following command (as a user other than root with sudo permission):

$ curl -L https://nixos.org/nix/install | sh

Make sure to follow the instructions output by the script.

The installation script requires that you have sudo access to root.

2.Verify installation

You may want to verify the integrity of the installation script using GPG:

$ curl -o install-nix-2.3.7 https://releases.nixos.org/nix/nix-2.3.7/install
$ curl -o install-nix-2.3.7.asc https://releases.nixos.org/nix/nix-2.3.7/install.asc
$ gpg2 --recv-keys B541D55301270E0BCF15CA5D8170B4726D7198DE
$ gpg2 --verify ./install-nix-2.3.7.asc
$ sh ./install-nix-2.3.7

The signing key has fingerprint B541 D553 0127 0E0B CF15 CA5D 8170 B472 6D71 98DE. It is also available on GitHub.

3.Uninstall

You can uninstall Nix simply by running rm -rf /nix.

NixOS

Current version

20.03

ISO image

You can install NixOS on physical hardware by burning one of the CD images onto a blank CD/DVD disk, or by copying it onto a USB stick. For installation instructions, please see the manual.

Graphical ISO image

The graphical installation ISO image contains NixOS installer as well as Plasma Desktop and several applications. It’s a live CD, so it allows you to get an impression of NixOS (and the Nix package manager) without installing it.

Minimal ISO image

The minimal installation ISO image does not contain the graphical user interface, and is therefore a lot smaller. You have to run the installer from the console. It contains a number of rescue tools.

VirtualBox

VirtualBox image includes the Plasma Desktop (was KDE) as well as the VirtualBox guest additions.

To use it

  • Download the OVA file using the button above.
  • Open VirtualBox.
  • Run File → Import Appliance from the menu.
  • Select previously downloaded OVA file.
  • Click Import.
  • You can then start the virtual machine.
  • You can log in as user demo, password demo.
  • To obtain a root shell, run sudo -i in the terminal (konsole).

Amazon EC2

NixOS can be deployed to Amazon EC2 with a pre-generated AMI image that you can select bellow.

Via AWS Management Console

You can create an instance using the AWS Management Console by selecting the region and clicking the Launch button.

Choose region:
Root storage Virtualisation AMI
EBS Hardware ami-0d18fdd309cdefa86
EBS Hardware ami-093d9cc49c191eb6c
EBS Hardware ami-0087df91a7b6ebd45
EBS Hardware ami-0a1a6b569af04af9d
EBS Hardware ami-0dbf353e168d155f7
EBS Hardware ami-04c0f3a75f63daddd
EBS Hardware ami-02365684a173255c7
EBS Hardware ami-0a1a94722dcbff94c
EBS Hardware ami-02699abfacbb6464b
EBS Hardware ami-02c34db5766cc7013
EBS Hardware ami-0e32bd8c7853883f1
EBS Hardware ami-061edb1356c1d69fd
EBS Hardware ami-09859378158ae971d
EBS Hardware ami-0c5e7760748b74e85
EBS Hardware ami-030296bb256764655
EBS Hardware ami-050be818e0266b741
EBS Hardware ami-06562f78dca68eda2

Via Command Line

You can also create an instance from the command line. For example, to create an instance in region eu-west-1 using the EC2 API tools, just run:

$ nix-shell -p ec2_api_tools
(nix-shell) $ ec2-run-instances ami-02c34db5766cc7013 --region eu-west-1 -k my-key-pair