Mergerfs setup for /pool
This commit is contained in:
parent
99fe50f4fe
commit
c3f0a845ad
2 changed files with 8 additions and 5 deletions
|
@ -86,6 +86,7 @@ in {
|
|||
# SYSTEM PACKAGES
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
mergerfs
|
||||
micro
|
||||
openssh
|
||||
ranger
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue