Using disko-install:
Experimentally, install to USB-stick (/dev/sda):
sudo nix run 'github:nix-community/disko#disko-install' -- --flake ./#deck --disk main /dev/sda
Afterwards, we can test the result:
sudo qemu-kvm -enable-kvm -hda /dev/sda
Configure ./systems/thinkpad/disko-config.nix for appropriate memory device /dev/sd*
sudo nix run github:nix-community/disko -- --mode disko ./systems/thinkpad/disko-config.nix
Get UUID for boot
root
and swap
:
lsblk -a -f
Edit ./systems/thinkpad/hardware-config.nix to fit the new partitions.
Make sure /dev/sd*1
and /dev/sd*2
is mounted at /mnt/boot
and /mnt
, respectively.
Install thinkpad
system configuration to mounted partitions:
sudo nixos-install --root /mnt --flake ./#thinkpad