From c3f0a845ad7c523fd69e4d3ab977b1efc1baf1b3 Mon Sep 17 00:00:00 2001 From: Chris Toph Date: Wed, 4 Sep 2024 00:07:00 -0400 Subject: [PATCH] Mergerfs setup for /pool --- nixos/configuration.nix | 1 + nixos/hardware-configuration.nix | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 788c4b4..b89c3dc 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -86,6 +86,7 @@ in { # SYSTEM PACKAGES environment.systemPackages = with pkgs; [ git + mergerfs micro openssh ranger diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index fe5f906..3dd08ce 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -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";