Keyboard
# loadkeys dk
System time
# systemctl enable --now systemd-timesyncd
Clear disk method one
# cfdisk --zero /dev/sda
Clear disk method two
# sgdisk --zap-all /dev/sda
EFI ($esp)
# mkfs.fat -F 32 /dev/sda1
Swap
# mkswap /dev/sda2
Root
# mkfs.ext4 /dev/sda3
Home
# mkfs.ext4 /dev/sda4
Mounting
# mount /dev/sda3 /mnt
# mkdir -p /mnt/boot/efi
# mkdir -p /mnt/home
Verify your folder structure
# find /mnt -type d
/mnt
/mnt/home
/mnt/boot
/mnt/boot/efi
Mount the efi and home partition
# mount /dev/sda1 /mnt/boot/efi
# mount /dev/sda4 /mnt/home
Base installation
# pacstrap /mnt base linux dhcpcd vi nano sudo links
Base configuration
# archchroot /mnt /bin/bash
vconsole.conf
KEYMAP=dk
FONT=
FONT_MAP=
locale.gen
...
da_DK.UTF-8 UTF-8
en_DK.UTF-8 UTF-8
en_US.UTF-8 UTF-8
...
Build locale
# locale-gen
locale.conf
LANG=en_DK.UTF8
Timezone
# ln -sf /usr/share/zoneinfo/Europe/Copenhagen /etc/localtime
Clock
# hwclock --systohc --utc
Set hostname
# echo nix > /etc/hostname
hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 nix.localdomain nix
Note: If the system has a static IP replace 127.0.1.1 with the IP.
Enable wheel group
%wheel ALL=(ALL) ALL
Enable network
# systemctl enable dhcpcd
Enable timesync daemon
# systemctl enable systemd-timesyncd
root password
# passwd
Install grub mkinitcpio efi boot manager
ยค pacman -S grub mkinitcpio efibootmgr
Build the initramfs
# mkinitcpio -p linux
install bootloader
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=Manjaro
Generate grub configuration
# grub-mkconfig -o /boot/grub/grub.cfg
Exit chroot
# exit
Unmount
# umount -R /mnt
Restart (remember to remove your install media)
# reboot
Login as root and test your internet connection
$ links root.nix.dk