From fbe9a7885643e9e22f1c28647f958b2f1d993af1 Mon Sep 17 00:00:00 2001 From: s0me1newithhand7s Date: Sun, 3 May 2026 15:30:52 +0300 Subject: [PATCH] kyra(hardening): disko LVM subvolume prepare for Impermanence Signed-off-by: s0me1newithhand7s --- kyra/disko/lvm_vg.nix | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/kyra/disko/lvm_vg.nix b/kyra/disko/lvm_vg.nix index e23c049..2cc4044 100644 --- a/kyra/disko/lvm_vg.nix +++ b/kyra/disko/lvm_vg.nix @@ -1,22 +1,39 @@ -{ +_: { disko = { devices = { lvm_vg = { - pool = { + "pool" = { type = "lvm_vg"; lvs = { - root = { + "root" = { size = "100%FREE"; content = { type = "btrfs"; - mountpoint = "/"; extraArgs = [ "-f" ]; - mountOptions = [ - "compress=zstd" - ]; + subvolumes = { + "/nix" = { + mountpoint = "/nix"; + mountOptions = [ + "compress=zstd" + "noatime" + "nodev" + "nosuid" + ]; + }; + + "/persist" = { + mountpoint = "/persist"; + mountOptions = [ + "compress=zstd" + "noatime" + "nodev" + "nosuid" + ]; + }; + }; }; }; };