/dev/disk/by-id/... -> /dev/nvme0n1pX
This commit is contained in:
parent
cbf7f7270c
commit
57b520154d
@ -3,7 +3,8 @@
|
|||||||
myData,
|
myData,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
nvme = "/dev/disk/by-id/nvme-WDC_PC_SN730_SDBQNTY-256G-1001_19494D801165";
|
#nvme = "/dev/disk/by-id/nvme-WDC_PC_SN730_SDBQNTY-256G-1001_19494D801165";
|
||||||
|
nvme = "/dev/nvme0n1";
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
@ -18,7 +19,8 @@ in {
|
|||||||
kernelModules = ["usb_storage"];
|
kernelModules = ["usb_storage"];
|
||||||
luks.devices = {
|
luks.devices = {
|
||||||
luksroot = {
|
luksroot = {
|
||||||
device = "${nvme}-part3";
|
#device = "${nvme}-part3";
|
||||||
|
device = "${nvme}p3";
|
||||||
allowDiscards = true;
|
allowDiscards = true;
|
||||||
keyFileOffset = 9728;
|
keyFileOffset = 9728;
|
||||||
keyFileSize = 512;
|
keyFileSize = 512;
|
||||||
@ -30,7 +32,7 @@ in {
|
|||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{
|
{
|
||||||
device = "${nvme}-part2";
|
device = "${nvme}p2";
|
||||||
randomEncryption.enable = true;
|
randomEncryption.enable = true;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -42,7 +44,7 @@ in {
|
|||||||
options = ["noatime" "compress=zstd"];
|
options = ["noatime" "compress=zstd"];
|
||||||
};
|
};
|
||||||
"/boot" = {
|
"/boot" = {
|
||||||
device = "${nvme}-part1";
|
device = "${nvme}1";
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user