Reinstall inspiron

This commit is contained in:
SebastianStork 2024-08-10 20:39:01 +02:00
parent 9788f1bea6
commit 2a4f92d952
2 changed files with 47 additions and 50 deletions

View file

@ -1,63 +1,60 @@
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "512M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "defaults" ];
};
disk.main = {
type = "disk";
device = "/dev/nvme0n1";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "512M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "defaults" ];
};
luks = {
size = "100%";
};
luks = {
size = "100%";
content = {
name = "cryptroot";
type = "luks";
settings = {
allowDiscards = true;
bypassWorkqueues = true;
keyFile = "/dev/disk/by-id/usb-SCSI_DISK-0:0";
keyFileSize = 512;
keyFileTimeout = 5;
};
additionalKeyFiles = [ "/tmp/secret.key" ];
content = {
name = "cryptroot";
type = "luks";
settings = {
allowDiscards = true;
keyFile = "/dev/disk/by-id/usb-SMI_USB_DISK-0:0";
keyFileSize = 4096;
keyFileTimeout = 5;
};
additionalKeyFiles = [ "/tmp/secret.key" ];
content = {
type = "lvm_pv";
vg = "pool";
};
type = "lvm_pv";
vg = "pool";
};
};
};
};
};
};
lvm_vg = {
pool = {
type = "lvm_vg";
lvs = {
swap = {
size = "20G";
content = {
type = "swap";
resumeDevice = true;
};
lvm_vg.pool = {
type = "lvm_vg";
lvs = {
swap = {
size = "20G";
content = {
type = "swap";
resumeDevice = true;
};
root = {
size = "100%FREE";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [ "defaults" ];
};
};
root = {
size = "100%FREE";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
mountOptions = [ "defaults" ];
};
};
};