From 3ecb99ac34747f5a1eef482156168094e3ad2681 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 17 Jan 2023 15:53:06 +0100 Subject: [PATCH] Enable LVM, make sure data partition is created last There are suggestions to add a way to set the order without the need to prefix attribute names. See https://github.com/nix-community/disko/issues/80 --- machines/odin/configuration.nix | 8 +++++++- machines/odin/storage.nix | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/machines/odin/configuration.nix b/machines/odin/configuration.nix index 9d9c1b9..002817e 100644 --- a/machines/odin/configuration.nix +++ b/machines/odin/configuration.nix @@ -44,7 +44,7 @@ }; initrd = { - availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ]; + availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "" ]; kernelModules = [ ]; }; @@ -56,4 +56,10 @@ services.qemuGuest = { enable = true; }; + + services.lvm = { + enable = true; + }; + + system.stateVersion = "23.05"; } diff --git a/machines/odin/storage.nix b/machines/odin/storage.nix index 4af1706..798e500 100644 --- a/machines/odin/storage.nix +++ b/machines/odin/storage.nix @@ -78,7 +78,7 @@ }; }; - data = { + zz_data = { size = "100%FREE"; content = { type = "filesystem";