From 5b8a1430fe361c7a4adbc2fe3a2f7cef8a5b0dba Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 5 Jul 2024 18:57:17 +0100 Subject: [PATCH] Add postgres btrfs zvol --- hosts/common/disks/zfs/zspeed.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/hosts/common/disks/zfs/zspeed.nix b/hosts/common/disks/zfs/zspeed.nix index ead5709..9133e71 100644 --- a/hosts/common/disks/zfs/zspeed.nix +++ b/hosts/common/disks/zfs/zspeed.nix @@ -53,14 +53,11 @@ postgres = { type = "zfs_volume"; size = "10G -s"; - options = { - "com.sun:auto-snapshot:daily" = "true"; - "volblocksize" = "8k"; + content = { + type = "filesystem"; + format = "btrfs"; + mountpoint = "/postgres"; }; - }; - lxc = { - type = "zfs_volume"; - size = "10G -s"; options = { "com.sun:auto-snapshot:daily" = "true"; "volblocksize" = "8k";