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

View file

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