My nix computer setups.
Setting up a new computer
-
Download the latest version of nixos and boot it on the target device.
-
Exit GUI installer and open a terminal.
-
Set
$EDITOR
tovim
usingexport EDITOR=vim
. -
Add the following to the config (using
sudoedit /etc/nixos/configuration.nix
):nix.settings.experimental-features = [ "nix-command" "flakes" ]; environment.systemPackages = [ pkgs.just pkgs.git pkgs.openssl ];
-
Switch to new config using
sudo nixos rebuild switch
. -
Git clone this repository:
git clone https://github.com/Alxandr/nix-system
.