palantir: changed disko config

This commit is contained in:
Victor Ișan 2026-04-23 22:33:33 +02:00
parent de90239152
commit e10e3059b9
4 changed files with 115 additions and 27 deletions

View File

@ -0,0 +1,96 @@
{...}:
let
disks = [
"/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7383515406"
"/dev/disk/by-id/ata-WDC_WDS120G2G0A-00JH30_184377804456"
];
in
{
disko.devices = {
disk = {
ssd0 = {
type = "disk";
device = builtins.elemAt disks 0;
content = {
type = "gpt";
partitions = {
esp = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot/efi";
mountOptions = [ "umask=0077" ];
};
};
raid = {
size = "100%";
content = {
type = "mdraid";
name = "md0";
};
};
};
};
};
ssd1 = {
type = "disk";
device = builtins.elemAt disks 1;
content = {
type = "gpt";
partitions = {
raid = {
size = "100%";
content = {
type = "mdraid";
name = "md0";
};
};
};
};
};
};
mdadm = {
md0 = {
type = "mdadm";
level = 0; # RAID0
content = {
type = "gpt";
partitions = {
root = {
size = "30G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
nix = {
size = "50G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/nix";
};
};
games = {
size = "130G";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/games";
};
};
};
};
};
};
};
}

View File

@ -3,7 +3,7 @@
let let
disks = [ disks = [
"/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7383515406" "/dev/disk/by-id/ata-KINGSTON_SA400S37960G_50026B7383515406"
#"/dev/disk/by-id/ata-KINGSTON_SA400S37120G_50026B7783176055" "/dev/disk/by-id/ata-WDC_WDS120G2G0A-00JH30_184377804456"
]; ];
in in
{ {
@ -37,22 +37,22 @@ in
}; };
}; };
#ssd1 = { ssd1 = {
# type = "disk"; type = "disk";
# device = builtins.elemAt disks 1; device = builtins.elemAt disks 1;
# content = { content = {
# type = "gpt"; type = "gpt";
# partitions = { partitions = {
# lvm = { lvm = {
# size = "100%"; size = "100%";
# content = { content = {
# type = "lvm_pv"; type = "lvm_pv";
# vg = "mainpool"; vg = "mainpool";
# }; };
# }; };
# }; };
# }; };
#}; };
}; };
lvm_vg = { lvm_vg = {
@ -89,4 +89,4 @@ in
}; };
}; };
}; };
} }

View File

@ -31,15 +31,6 @@
}; };
}; };
# Mounts
#fileSystems."/games" = {
# device = "/dev/disk/by-uuid/90bea801-2b8a-40db-8862-ccc55f2b2262";
# fsType = "ext4";
# options = [
# "nofail" # Prevent system from failing if this drive doesn't mount
# ];
#};
# Release # Release
system.stateVersion = release; system.stateVersion = release;
} }

View File

@ -16,6 +16,7 @@
killall killall
neovim neovim
progress progress
pv
]; ];
# SSH # SSH