about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--docs/install.org3
-rw-r--r--hosts/carmel/hardware-configuration.nix6
2 files changed, 9 insertions, 0 deletions
diff --git a/docs/install.org b/docs/install.org
index 86f255d..386ebc0 100644
--- a/docs/install.org
+++ b/docs/install.org
@@ -52,6 +52,7 @@ mount -t btrfs /dev/mapper/system /mnt
 btrfs subvolume create /mnt/nixos
 btrfs subvolume create /mnt/home
 btrfs subvolume create /mnt/snapshots
+btrfs subvolume create /mnt/home/fcuny/media
 
 umount /mnt
 #+end_src
@@ -61,8 +62,10 @@ Now we can re-mount the partitions with the proper options:
 mount -o subvol=nixos,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt
 
 mkdir /mnt/{home,boot,.snapshots}
+mkdir -p /mnt/home/fcuny/media
 
 mount -o subvol=home,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt/home
+mount -o subvol=media,compress=zstd,noatime,autodefrag /dev/mapper/system /mnt/home/fcuny/media
 mount -o subvol=snapshots,compress=zstd,noatime /dev/mapper/system /mnt/.snapshots
 mount /dev/nvme0n1p3 /mnt/boot
 #+end_src
diff --git a/hosts/carmel/hardware-configuration.nix b/hosts/carmel/hardware-configuration.nix
index 17aba16..4ab03e7 100644
--- a/hosts/carmel/hardware-configuration.nix
+++ b/hosts/carmel/hardware-configuration.nix
@@ -27,6 +27,12 @@
       options = [ "subvol=home" ];
     };
 
+  fileSystems."/home/fcuny/media" =
+    { device = "/dev/disk/by-uuid/7d4e07d8-1104-4ab8-8ead-8ca28da2d344";
+      fsType = "btrfs";
+      options = [ "subvol=media" ];
+    };
+
   fileSystems."/.snapshots" =
     { device = "/dev/disk/by-uuid/7d4e07d8-1104-4ab8-8ead-8ca28da2d344";
       fsType = "btrfs";