move to luks

This commit is contained in:
2024-08-22 01:21:49 -04:00
parent b03e1ea9c2
commit b43e9054fb
3 changed files with 33 additions and 21 deletions

View File

@ -0,0 +1,32 @@
{ ... }:
{
boot.initrd.luks.devices = {
"nixos-pv" = {
device = "/dev/disk/by-uuid/l1H5s7-l3Tx-tDci-zgcx-iKPz-R7jg-Vnp8J2";
preLVM = true;
allowDiscards = true;
};
};
fileSystems = {
"/".options = [
"noatime"
"nodiratime"
"discard"
];
"/home".options = [
"noatime"
"nodiratime"
"discard"
];
"/boot".option = [
"noatime"
"nodiratime"
"discard"
];
};
}