2019-02-02 19:45:05 +00:00
|
|
|
# code.dumpstack.io
|
|
|
|
|
2019-07-24 06:33:16 +00:00
|
|
|
[Download NixOS installation ISO](https://nixos.org/nixos/download.html)
|
|
|
|
|
|
|
|
Notes:
|
|
|
|
1. I assume that latest **stable** (e.g. 19.03) ISO will be used for installation.
|
|
|
|
2. You need to change hostname in `configuration.nix:9`.
|
|
|
|
|
2019-02-02 19:45:05 +00:00
|
|
|
## Installation
|
|
|
|
|
|
|
|
parted /dev/vda mklabel msdos
|
|
|
|
parted /dev/vda mkpart primary ext4 0% 100%
|
|
|
|
mkfs.ext4 -L system /dev/vda1
|
|
|
|
mount /dev/vda1 /mnt/
|
|
|
|
|
|
|
|
nix-env -iA nixos.gitMinimal
|
2019-07-24 06:33:16 +00:00
|
|
|
git clone https://code.dumpstack.io/infra/code.dumpstack.io.git /mnt/etc/nixos/
|
2019-02-02 19:45:05 +00:00
|
|
|
|
2022-03-20 16:33:00 +00:00
|
|
|
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
2019-07-29 19:00:49 +00:00
|
|
|
nix-channel --update
|
|
|
|
|
2019-02-02 19:45:05 +00:00
|
|
|
nixos-generate-config --root /mnt
|
|
|
|
|
|
|
|
nixos-install
|
|
|
|
reboot
|
2019-07-24 06:33:16 +00:00
|
|
|
|
|
|
|
## After install
|
|
|
|
|
2022-03-20 16:33:00 +00:00
|
|
|
nix-channel --add https://nixos.org/channels/nixos-unstable nixos
|
|
|
|
nix-channel --update
|