palantir: just stripe everything into one partition

This commit is contained in:
Victor Ișan 2026-04-23 23:20:36 +02:00
parent 9c35b32ea9
commit fe26921b10
2 changed files with 11 additions and 34 deletions

View File

@ -30,7 +30,7 @@ in
size = "100%";
content = {
type = "mdraid";
name = "md0";
name = "raid0";
};
};
};
@ -47,7 +47,7 @@ in
size = "100%";
content = {
type = "mdraid";
name = "md0";
name = "raid0";
};
};
};
@ -56,39 +56,13 @@ in
};
mdadm = {
md0 = {
raid0 = {
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";
};
};
};
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};

View File

@ -3,14 +3,17 @@
{
# Imports
imports = [
disko.nixosModules.disko ../disko/palantir/lvm.nix
disko.nixosModules.disko ../disko/palantir/lvm-striped.nix
../modules/nvidia.nix
../modules/plasma.nix
../modules/gaming.nix
];
# Disks
boot.initrd.services.lvm.enable = true;
boot.initrd.services.lvm.enable = false;
boot.swraid.enable = true;
boot.swraid.mdadmConf = "MAILADDR root";
boot.initrd.availableKernelModules = [ "md_mod" "raid0" ];
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;