Links:#
komplett gelesen (und verstanden?):#
Installation#
“tabula rasa”#
# blkdiscard -v /dev/nvme0n1
# wipefs -a /dev/nvme0n1
Partitionieren (>=250GB)#
# parted /dev/nvme0n1 -- mklabel gpt
# parted /dev/nvme0n1 -- mkpart ESP 2MiB 2GiB
# parted /dev/nvme0n1 -- set 1 esp on
# parted /dev/nvme0n1 -- mkpart root 2GiB 102GiB
# parted /dev/nvme0n1 -- mkpart swap 102GiB 110GiB
# parted /dev/nvme0n1 -- mkpart extra 110GiB 100%
# mkfs.fat -F 32 -n boot /dev/nvme0n1p1
# mkfs.xfs -L nixos /dev/nvme0n1p2
# mkswap -L swap /dev/nvme0n1p3
# mkfs.xfs -L backup /dev/nvme0n1p4
Mounten#
# mount /dev/disk/by-label/nixos /mnt && mkdir /mnt/boot
# mount -o umask=077 /dev/disk/by-label/boot /mnt/boot
# swapon /dev/nvme0n1p3 # optional
Installieren#
# nixos-generate-config --root /mnt
# vi /mnt/etc/nixos/configuration.nix
# time nixos-install --no-root-password --root /mnt/
Neustarten#
# wget -O /etc/nixos/nsync https://nixos.sattler.ddnss.org/nsync/nsync
# bash /etc/nixos/nsync | head
Update#
“normales” Update#
# nix-channel --update && nixos-rebuild test
# nix-channel --update && nixos-rebuild boot && exec reboot ## full update
# nix-channel --update && nixos-rebuild switch ## full update (w/o reboot)
installiertes Release?#
# $ nixos-version
# $ nix-channel --list
nixos https://channels.nixos.org/nixos-25.11
Releasewechsel?#
# nix-channel --add https://nixos.org/channels/nixos-26.05 nixos ## stable
# nix-channel --add https://nixos.org/channels/nixos-unstable nixos ## unstable
## danach: nix-channel --update && nixos-rebuild test/switch/boot
Probleme dabei?#
# nix-channel --rollback
# nixos-rebuild switch
weitere URLs:#