mirror of
https://github.com/eliasrenman/nixos-config.git
synced 2026-03-16 23:06:05 +01:00
40376cbc1cad856a44c2b241e2998ea82321ad56
- Download NixOS ISO
- Write the ISO to a USB drive using
dd - Boot machine from ISO
- If you're using vbox, then boot with
nomodesetas otherwise the boot hangs.
- If you're using vbox, then boot with
- Install git:
nix-env -i git - Clone configuration:
git clone https://github.com/willprice/nixos-config.git - Follow the installation guide up to
nixos-generate-config- Copy nixos configuration files to
/mnt:cp nixos-config/* /mnt/etc/nixos - Generate hardware config:
nixos-generate-config - Install system:
nixos-install(set root password)
- Copy nixos configuration files to
- Reboot
- Login as root
- Set password for
will:passwd will - Log out and login as
willsettingmate+xmonadas desktop session - Generate an SSH key for the new machine:
ssh-keygen - Add SSH key to github profile
- Clone dotfiles:
git clone --recursive git@github.com:willprice/dotfiles.git ~/.dotfiles - Install dotfiles:
cd ~/.dotfiles; ./install-all.sh
Cheatsheet
Nix
- Install a package:
nix-env -i packageName - List all available packages:
nix-env -qa(take a while to run, best of dumping this and grepping the listing)
NixOS
- Configuration file:
/etc/nixos/configuration.nix
Description
Languages
Nix
100%