From c42fadab6de23ff0f434efb426f7796ddd7db740 Mon Sep 17 00:00:00 2001 From: Akshay Mankar Date: Sat, 28 Oct 2023 14:12:31 +0200 Subject: [PATCH] nachtigall: Mount /var/lib as a separate ZFS dataset This would help keep all application data out of the root partion by default --- hosts/nachtigall/hardware-configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/nachtigall/hardware-configuration.nix b/hosts/nachtigall/hardware-configuration.nix index f06e4eb8..02246323 100644 --- a/hosts/nachtigall/hardware-configuration.nix +++ b/hosts/nachtigall/hardware-configuration.nix @@ -18,6 +18,11 @@ fsType = "zfs"; }; + fileSystems."/var/lib" = + { device = "root_pool/data"; + fsType = "zfs"; + }; + fileSystems."/var/lib/postgresql" = { device = "root_pool/data/postgresql"; fsType = "zfs";