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

View file

@ -4,6 +4,7 @@
imports = [ imports = [
./disko.nix ./disko.nix
./data.nix
./hardware-configuration.nix ./hardware-configuration.nix
]; ];