Added the data drive to the filesystem

This commit is contained in:
willifan 2024-07-28 10:02:18 +02:00
parent a322f8291d
commit 6a3f97cebb
2 changed files with 10 additions and 14 deletions

View File

@ -1,19 +1,14 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
mergerfs
];
# environment.systemPackages = with pkgs; [
# mergerfs
# ];
fileSystems."/storage" = {
fsType = "fuse.mergerfs";
device = "/mnt/disks/*";
options = ["cache.files=partial" "dropcacheonclose=true" "category.create=mfs"];
fileSystems."/mnt/data" = {
device = "/dev/disk/by-id/wwn-0x500a0751e6b6c60f-part1";
fsType = "btrfs";
options = [" noatime=true compress=zstd:12 "];
};
services.snapraid = {
enable = true;
};
}
}

View File

@ -4,8 +4,9 @@
imports = [
./disko.nix
./data.nix
./hardware-configuration.nix
];
}
}