Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.32 KB

drives.md

File metadata and controls

41 lines (30 loc) · 1.32 KB
  1. The drive needs to be already formated, LUKS partition created and assigned, so you can see it at /dev/mapper/partition_name My guides: Create LUKS Ext4 partition My guides: Format drive bigger than 2Tb

  2. Add the UUID to the boot.initrd.luks.devices to your configuration.nix (drives.nix module). This is now done on flake.PROFILE.nix by variables. Adjust it accordingly together with drives.nix

    # To get general info
    sudo fdisk -l
    
    # To get the UUID
    sudo blkid
  3. Run the install.sh script and Reboot the system. The device should be now unlocked on /dev/mapper

  4. Create the directory/es, ie:

    mkdir -p /mnt/DATA_4TB
    mkdir -p /mnt/Machines
    mkdir -p /mnt/TimeShift
  5. Mount it/them, ie:

    sudo mount /dev/mapper/DATA_4TB /mnt/DATA_4TB
    sudo mount /dev/mapper/Machines /mnt/Machines
    sudo mount /dev/mapper/TimeShift /mnt/TimeShift
  6. The device should be now mounted. When you install.sh again, the device is added automatically to hardware-configuration.nix If you try to add it manually on configuration.nix or here, there will be conflicts probably.