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 = { disko.devices = {
disk = { disk.main = {
main = { type = "disk";
type = "disk"; device = "/dev/nvme0n1";
device = "/dev/nvme0n1"; content = {
content = { type = "gpt";
type = "gpt"; partitions = {
partitions = { ESP = {
ESP = { type = "EF00";
type = "EF00"; size = "512M";
size = "512M"; content = {
content = { type = "filesystem";
type = "filesystem"; format = "vfat";
format = "vfat"; mountpoint = "/boot";
mountpoint = "/boot"; mountOptions = [ "defaults" ];
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 = { content = {
name = "cryptroot"; type = "lvm_pv";
type = "luks"; vg = "pool";
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";
};
}; };
}; };
}; };
}; };
}; };
}; };
lvm_vg = { lvm_vg.pool = {
pool = { type = "lvm_vg";
type = "lvm_vg"; lvs = {
lvs = { swap = {
swap = { size = "20G";
size = "20G"; content = {
content = { type = "swap";
type = "swap"; resumeDevice = true;
resumeDevice = true;
};
}; };
root = { };
size = "100%FREE"; root = {
content = { size = "100%FREE";
type = "filesystem"; content = {
format = "ext4"; type = "filesystem";
mountpoint = "/"; format = "ext4";
mountOptions = [ "defaults" ]; mountpoint = "/";
}; mountOptions = [ "defaults" ];
}; };
}; };
}; };

View file

@ -16,7 +16,7 @@
settings = { settings = {
devices = { devices = {
north.id = "ROS2S76-ULQWVFC-7KNQQ6Q-MNIWNKT-2QOPPHY-FFQZNVM-GUJRTHE-NZBM3QY"; north.id = "ROS2S76-ULQWVFC-7KNQQ6Q-MNIWNKT-2QOPPHY-FFQZNVM-GUJRTHE-NZBM3QY";
inspiron.id = "K7V6PJV-3HLR6FI-VTFRJRN-ECG2ZYI-TNT4F5G-2WVQBDW-S77CHYL-VCAATAV"; inspiron.id = "DLFGFCF-MTYXA23-F235RKL-QFZ4GB6-BUHTYMX-DJCTFRA-NVMAE5Y-R63NMQY";
}; };
folders = folders =