Request: NixOs
- Download ISO.
wget -O https://channels.nixos.org/nixos-24.05/latest-nixos-minimal-x86_64-linux.iso-
Boot Into the Installer.
-
Switch to Root:
sudo -i -
Partitions:
# Replace nvme with your disk partition
cfdisk /dev/nvme0n1- Format Partitions:
mkfs.fat -F 32 -n EFI /dev/nvme0n1p1
mkfs.xfs -L NIXOS /dev/nvme0n1p2- Mount Partitions:
mount /dev/disk/by-label/NIXOS /mnt
mount --mkdir /dev/disk/by-label/EFI /mnt/boot- Enable nixFlakes
nix-shell -p nixVersions.stable git- Clone my Dotfiles
git clone --depth 1 https://github.com/hazed7/kaku /mnt/etc/nixos- Generate Nix Hardware Settings:
nixos-generate-config --dir /mnt/etc/nixos/hosts/nix --force
# Remove configuration.nix
rm -rf /mnt/etc/nixos/hosts/nix/configuration.nix- Install Dotfiles Using Flake
mkdir -p /mnt/tmp
export TMPDIR=/mnt/tmp
# Move to folder
cd /mnt/etc/nixos
# Install
nixos-install --flake .#nix
nixos-enter --root /mnt -c 'passwd hazed'- Reboot
- Change Default password for User.
passwd YourUser- Install w/ Home-Manager the config
home-manager switch --flake 'github:hazed/kaku#hazed@nix'