palantir: just stripe everything into one partition
This commit is contained in:
parent
9c35b32ea9
commit
fe26921b10
@ -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,41 +56,15 @@ 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user