Package | Description |
---|---|
Wraps and locks the disko input in an environment providing the
|
|
Defaults to the |
|
Wraps the |
|
Wraps the |
|
Wraps the |
Variable | Description | Example |
---|---|---|
|
Mountpoint for the |
|
Path to the disk device. |
|
|
|
Mountpoint for the |
|
Disk | Mount | Format |
---|---|---|
nix \
--experimental-features "flakes nix-command" \
run \
github:trueNAHO/disks#mount \
-- \
--argstr backupMountpoint <BACKUP_MOUNTPOINT> \
--argstr device <DEVICE> \
--argstr rootMountpoint <ROOT_MOUNTPOINT> \
--root-mountpoint / \
disks/SanDisk_Extreme_55AE_323230354C37343031383735.nix |
nix \
--experimental-features "flakes nix-command" \
run \
github:trueNAHO/disks#format \
-- \
--argstr backupMountpoint <BACKUP_MOUNTPOINT> \
--argstr device <DEVICE> \
--argstr rootMountpoint <ROOT_MOUNTPOINT> \
--root-mountpoint / \
disks/SanDisk_Extreme_55AE_323230354C37343031383735.nix |
To add a new disk, add the new disko configuration to the
disks/<DISKO>.nix
file, where <DISKO>
is the output of the following command
and <FILE>
corresponds to the path of the disk device:
udevadm info --name <FILE> --property ID_SERIAL --query property --value |
sed 's/-[[:digit:]]*:[[:digit:]]*$//'