there is a way to define the luks device name for the encrypted swap ?
i though that encrypted.label would do the job !
like /dev/mapper/luks-swap !
there is a way to define the luks device name for the encrypted swap ?
i though that encrypted.label would do the job !
like /dev/mapper/luks-swap !
I think you can do something like,
{
# Swap configuration
swapDevices = [
{
device = "/dev/disk/by-uuid/<your-device-uuid>";
encrypted = {
enable = true;
keyFile = "/path/to/keyfile"; # Optional: if using a key file
};
}
];
}
Perhaps I did not be clear, I want to define under which Luks device name is opened the partition for swap.
I want that the Luks device name for swap is named : luks-swap
Oh, I think there used to be an option for that but I can’t seem to find it (maybe it was removed?)