From 5ae4e793e710e57cb4243938a20aa11e1febcdd4 Mon Sep 17 00:00:00 2001 From: sajenim Date: Mon, 22 Jan 2024 20:01:52 +0800 Subject: [PATCH] change mount paths --- nixos/viridian/hardware-configuration.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/nixos/viridian/hardware-configuration.nix b/nixos/viridian/hardware-configuration.nix index 8c8f7db..dc00d35 100644 --- a/nixos/viridian/hardware-configuration.nix +++ b/nixos/viridian/hardware-configuration.nix @@ -24,14 +24,21 @@ fsType = "vfat"; }; - fileSystems."/mnt/data" = { - device = "/dev/disk/by-label/data"; + fileSystems."/srv/multimedia" = { + device = "/dev/disk/by-label/multimedia"; fsType = "ext4"; }; - fileSystems."/mnt/backup" = { - device = "/dev/disk/by-label/backup"; - fsType = "ext4"; + fileSystems."/srv/containers" = { + device = "/dev/disk/by-label/data"; + fsType = "btrfs"; + options = [ "subvol=containers" "compress=zstd" ]; + }; + + fileSystems."/srv/backup" = { + device = "/dev/disk/by-label/data"; + fsType = "btrfs"; + options = [ "subvol=backup" "compress=zstd" ]; }; swapDevices = [