From 82803c619f68493290c9c7c369d50f43249adfd5 Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Sun, 2 Feb 2025 15:27:33 +0500 Subject: [PATCH] fix: NixOS | add persist subvolumes for btrfs in disko --- nixos/disko-config.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nixos/disko-config.nix b/nixos/disko-config.nix index 255e7b8..055fa01 100644 --- a/nixos/disko-config.nix +++ b/nixos/disko-config.nix @@ -45,6 +45,10 @@ mountpoint = "/var/log"; mountOptions = ["subvol=log" "compress=zstd" "noatime"]; }; + "/persist" = { + mountpoint = "/persist"; + mountOptions = ["subvol=persist" "compress=zstd" "noatime"]; + }; "/swap" = { mountpoint = "/swap"; swap.swapfile.size = "64G"; @@ -58,4 +62,7 @@ }; }; }; + + fileSystems."/persist".neededForBoot = true; + fileSystems."/var/log".neededForBoot = true; }