xd1le 2fe2821458 alacritty: cemant and base16-black-metal-immortal colors | 3 سال پیش | |
---|---|---|
alacritty | 3 سال پیش | |
chromium | 7 سال پیش | |
compton | 7 سال پیش | |
emacs | 3 سال پیش | |
fontconfig | 5 سال پیش | |
ghci | 8 سال پیش | |
git | 3 سال پیش | |
guile | 7 سال پیش | |
herbstluftwm | 5 سال پیش | |
interception-tools | 4 سال پیش | |
iosevka | 3 سال پیش | |
latexmk | 7 سال پیش | |
mpd | 7 سال پیش | |
mpv | 7 سال پیش | |
nixos | 3 سال پیش | |
pandoc | 6 سال پیش | |
polybar | 5 سال پیش | |
readline | 7 سال پیش | |
stow | 9 سال پیش | |
sxhkd | 5 سال پیش | |
tridactyl | 5 سال پیش | |
vim | 3 سال پیش | |
x | 5 سال پیش | |
zathura | 7 سال پیش | |
zsh | 3 سال پیش | |
.gitignore | 7 سال پیش | |
bootstrap | 5 سال پیش | |
copying | 5 سال پیش | |
flake.lock | 3 سال پیش | |
flake.nix | 3 سال پیش | |
readme.md | 5 سال پیش |
Download latest nixos-unstable image from https://nixos.org/channels/nixos-unstable.
Make a bootable usb. For example:
# Obviously run `lsblk -f` first to get the correct 'of' path to your usb.
#
# NOTE: Not using the correct 'of' path could erase your hard drive so be
# very careful to use the right one!
dd if=path/to/image of=/dev/sdb # As root.
Boot into live image and log in as root with empty password (if it doesn't automatically log you in).
Get internet access.
ip a
will bring up a list of network interfaces.
iwlist <interface> scan | less
to see if your wifi is available.
Edit /etc/wpa_supplicant.conf
with your network details.
wpa_supplicant -B -i<interface> -c/etc/wpa_supplicant.conf -Dwext
.
dhclient <interface>
or dhcpcd <interface>
if dhclient
command
doesn't exist.
Partition and format disks.
lsblk -f
lists your devices.
mkfs.ext4 -L nixos <device>
to format a device.
mkswap -L swap <device>
to make a swap partition.
(optional) Activate swap device: swapon <device>
.
Mount target filesystems under /mnt
:
mount /dev/disk/by-label/nixos /mnt
Generate /etc/nixos
configuration files:
nixos-generate-config --root /mnt
Inspect the generated /mnt/etc/configuration.nix
to see if any bootloader
options were put in there to hint on which bootloader options to use.
If using systemd-boot, mount the boot partition under /mnt/boot
and
perform step 8 again to get an updated hardware-configuration.nix
with the
/mnt/boot
filesystem entry.
Backup hardware-configuration.nix
:
cp /mnt/etc/nixos/hardware-configuration.nix \
/mnt/etc/nixos/hardware-configuration.modified.nix
Edit hardware-configuration.modified.nix
to put the correct bootloader
options in it, and also put system.stateVersion
from configuration.nix
into hardware-configuration.modified.nix
.
Copy wpa_supplicant.conf
to target filesystem:
cp /etc/wpa_supplicant.conf /mnt/etc
This allows wpa_supplicant to automatically connect to internet when rebooting into the installed system.
nixos-install -I
nixos-config=https://raw.githubusercontent.com/vyp/dots/master/nixos/minimal.nix
Reboot and login with root and set password for user "u":
passwd u
Login as user and retrieve this repository:
git clone https://vyp@github.com/vyp/dots
./dots/bootstrap
.
sudo nixos-rebuild boot
and reboot (with sudo shutdown now
).