From 6344eedd28940cf566d59f48eca197395f0d1034 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Wed, 29 May 2024 22:34:18 +0200 Subject: more ZFS preparations --- common.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'common.nix') diff --git a/common.nix b/common.nix index 98c2200..a64a3a3 100644 --- a/common.nix +++ b/common.nix @@ -56,23 +56,21 @@ in options = [ "defaults" "size=8G" "mode=755" ]; }; - # nix store file system from encrypted disk + # nix store file system from encrypted ZFS fileSystems."/nix" = - { device = "/dev/mapper/crypt-system"; - fsType = "btrfs"; + { device = "zpool/nix"; + fsType = "zfs"; neededForBoot = true; - options = [ "subvol=nix" "noatime" "nodiratime" ]; }; - # data store file system from encrypted disk + # data store file system from encrypted ZFS fileSystems."/data" = - { device = "/dev/mapper/crypt-system"; - fsType = "btrfs"; + { device = "zpool/data"; + fsType = "zfs"; neededForBoot = true; - options = [ "subvol=data" "noatime" "nodiratime" ]; }; - # bind mount to have homes + # bind mount to have user homes fileSystems."/home" = { device = "/data/home"; fsType = "none"; -- cgit v1.2.3