From fe26921b10e3fb2980843e6da8276efc1366a223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Victor=20I=C8=99an?= Date: Thu, 23 Apr 2026 23:20:36 +0200 Subject: [PATCH] palantir: just stripe everything into one partition --- disko/palantir/lvm-striped.nix | 38 ++++++---------------------------- hosts/palantir.nix | 7 +++++-- 2 files changed, 11 insertions(+), 34 deletions(-) diff --git a/disko/palantir/lvm-striped.nix b/disko/palantir/lvm-striped.nix index ef91064..a8293da 100644 --- a/disko/palantir/lvm-striped.nix +++ b/disko/palantir/lvm-striped.nix @@ -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 = "/"; }; }; }; diff --git a/hosts/palantir.nix b/hosts/palantir.nix index 7ccf6a1..b741093 100644 --- a/hosts/palantir.nix +++ b/hosts/palantir.nix @@ -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;