dot.nix/host/cloud/hardware.nix
2025-01-13 23:17:46 -05:00

42 lines
675 B
Nix

{
admin,
...
}:
{
# for sshfs
programs.fuse.userAllowOther = true;
fileSystems = {
"/pool" = {
fsType = "fuse.mergerfs";
device = "/mnt/data*";
options = [
"direct_io"
"defaults"
"allow_other"
"minfreespace=50G"
"fsname=mergerfs"
"category.create=mfs"
"nonempty"
];
};
"/home/${admin}/git" = {
fsType = "none";
device = "/pool/git";
options = [
"bind"
"nofail"
];
};
"/var/lib/nextcloud" = {
fsType = "none";
device = "/pool/NextCloud";
options = [
"bind"
"nofail"
];
};
};
}