2022-06-03 17:47:16 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
boot.initrd.luks.devices."luks-drive" = {
|
|
|
|
name = "luks-drive";
|
2022-06-03 23:37:07 +02:00
|
|
|
device = "/dev/disk/by-partlabel/Crypt";
|
2022-06-03 17:47:16 +02:00
|
|
|
preLVM = true;
|
|
|
|
allowDiscards = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/disk/by-label/thinkman-root";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/disk/by-label/thinkman-bo";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/home" = {
|
|
|
|
device = "/dev/disk/by-label/thinkman-home";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
|
|
|
|
swapDevices = [{
|
|
|
|
device = "/dev/disk/by-label/thinkman-swap";
|
|
|
|
}];
|
|
|
|
}
|