update GLaDOS's disko setup

This commit is contained in:
Lillian Violet 2025-08-15 21:43:22 +02:00
commit 6fe74f891b
5 changed files with 20 additions and 42 deletions

View file

@ -1,9 +1,9 @@
{
disko.devices = {
disk = {
sda1 = {
main = {
type = "disk";
device = "/dev/disk/by-path/pci-0000:06:00.0-ata-6";
device = "/dev/disk/by-path/pci-0000:01:00.0-nvme-1";
content = {
type = "gpt";
partitions = {
@ -14,64 +14,45 @@
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [
"defaults"
];
mountOptions = [ "umask=0077" ];
};
};
luks = {
nvme_luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
extraOpenArgs = [];
name = "nvme_crypted";
extraOpenArgs = [ ];
settings = {
# if you want to use the key for interactive login be sure there is no trailing newline
# for example use `echo -n "password" > /tmp/secret.key`
#keyFile = "/tmp/secret.key";
allowDiscards = true;
};
#additionalKeyFiles = ["/tmp/additionalSecret.key"];
content = {
type = "lvm_pv";
vg = "pool";
vg = "nvme_pool";
};
};
};
};
};
};
#sdc = {
#device = "/dev/disk/by-path/pci-0000:06:00.0-ata-2";
#type = "disk";
#content = {
#type = "gpt";
#partitions = {
#root = {
#size = "100%";
#content = {
#type = "filesystem";
#format = "ext4";
#mountpoint = "/media";
#};
#};
#};
#};
#};
};
lvm_vg = {
pool = {
nvme_pool = {
type = "lvm_vg";
lvs = {
swap = {
size = "16G";
nvme_swap = {
size = "32G";
content = {
type = "swap";
discardPolicy = "both";
resumeDevice = true; # resume from hiberation from this device
};
};
root = {
size = "100%FREE";
nvme_root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
@ -84,13 +65,5 @@
};
};
};
nodev = {
"/home/lillian/Downloads" = {
fsType = "tmpfs";
mountOptions = [
"size=4G"
];
};
};
};
}