Added the data drive to the filesystem
This commit is contained in:
parent
a322f8291d
commit
6a3f97cebb
2 changed files with 10 additions and 14 deletions
|
@ -1,19 +1,14 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
mergerfs
|
||||
];
|
||||
|
||||
fileSystems."/storage" = {
|
||||
fsType = "fuse.mergerfs";
|
||||
device = "/mnt/disks/*";
|
||||
options = ["cache.files=partial" "dropcacheonclose=true" "category.create=mfs"];
|
||||
};
|
||||
|
||||
services.snapraid = {
|
||||
enable = true;
|
||||
# environment.systemPackages = with pkgs; [
|
||||
# mergerfs
|
||||
# ];
|
||||
|
||||
fileSystems."/mnt/data" = {
|
||||
device = "/dev/disk/by-id/wwn-0x500a0751e6b6c60f-part1";
|
||||
fsType = "btrfs";
|
||||
options = [" noatime=true compress=zstd:12 "];
|
||||
};
|
||||
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
imports = [
|
||||
|
||||
./disko.nix
|
||||
./data.nix
|
||||
./hardware-configuration.nix
|
||||
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue