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 # SYSTEM PACKAGES
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
git git
mergerfs
micro micro
openssh openssh
ranger ranger

View file

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