From da08d77dc147f0a2926d89660bfac6ec4f9683d2 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Sun, 6 Nov 2022 13:00:02 +0100 Subject: [PATCH] mount btrfs root volume --- capibara.nix | 7 +++++++ trantor.nix | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/capibara.nix b/capibara.nix index 6b062eb..751e2c0 100644 --- a/capibara.nix +++ b/capibara.nix @@ -16,6 +16,13 @@ in { }; fileSystems = { + + "/mnt/btr_root" = { + device = "/dev/mapper/root"; + fsType = "btrfs"; + options = [ "subvolid=5" "compress=zstd" ]; + }; + "/persist" = { device = "/dev/mapper/root"; fsType = "btrfs"; diff --git a/trantor.nix b/trantor.nix index d080f86..8cd1453 100644 --- a/trantor.nix +++ b/trantor.nix @@ -20,6 +20,18 @@ in { fsType = "vfat"; }; + "/mnt/btr_system" = { + device = "/dev/mapper/system"; + fsType = "btrfs"; + options = [ "subvolid=5" "compress=zstd" ]; + }; + + "/mnt/btr_user" = { + device = "/dev/mapper/user"; + fsType = "btrfs"; + options = [ "subvolid=5" "compress=zstd" ]; + }; + "/persist" = { device = "/dev/mapper/user"; fsType = "btrfs";