storage: add snapraid

This commit is contained in:
Vivian 2023-12-29 02:23:21 +01:00
parent 75af9679d2
commit d7eb7b48b6
4 changed files with 44 additions and 36 deletions

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: {
environment.systemPackages = with pkgs; [ mergerfs ];
environment.systemPackages = with pkgs; [ mergerfs mergerfs-tools ];
fileSystems."/mnt/disk1" = {
fsType = "ext4";
@ -57,11 +57,4 @@
"category.create=mfs"
];
};
services.nfs.server = {
enable = true;
exports = ''
/mnt/storage *(rw,async,no_subtree_check,fsid=0,all_squash,anonuid=0,anongid=0)
'';
};
}