Mergerfs setup for /pool

This commit is contained in:
Chris Toph 2024-09-04 00:07:00 -04:00
parent 99fe50f4fe
commit c3f0a845ad
2 changed files with 8 additions and 5 deletions

View file

@ -86,6 +86,7 @@ in {
# SYSTEM PACKAGES
environment.systemPackages = with pkgs; [
git
mergerfs
micro
openssh
ranger

View file

@ -2,11 +2,13 @@
# Treats the system as a container.
boot.isContainer = true;
# TODO: SSHFS
# fileSystems."/" = {
# device = "/dev/sda1";
# fsType = "ext4";
# };
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"];
};
# Set your system kind (needed for flakes)
nixpkgs.hostPlatform = "x86_64-linux";