From 92a5a6f33256180353ea4fc4f02cd063424dd7d2 Mon Sep 17 00:00:00 2001 From: Brandon Schneider Date: Fri, 29 May 2026 14:58:20 -0500 Subject: [PATCH] feat(infra): enable btrfs kernel support and tools on netcup-vps btrfs-progs, btrfs-heatmap, btrfs-static. boot.kernelModules += btrfs, boot.supportedFilesystems += btrfs. grub.fsTracker enabled for subvolume tracking. --- 4-Infrastructure/netcup-vps/configuration.nix | 12 ++++++++++++ 4-Infrastructure/netcup-vps/flake.nix | 5 +++++ 2 files changed, 17 insertions(+) diff --git a/4-Infrastructure/netcup-vps/configuration.nix b/4-Infrastructure/netcup-vps/configuration.nix index b11f611a..363f9b86 100644 --- a/4-Infrastructure/netcup-vps/configuration.nix +++ b/4-Infrastructure/netcup-vps/configuration.nix @@ -14,6 +14,13 @@ boot.loader.grub.device = "/dev/vda"; boot.loader.grub.efiSupport = true; boot.loader.grub.efiInstallAsRemovable = true; + boot.loader.grub.fsTracker = true; # Track BTRFS subvolumes + + # ── BTRFS support ─────────────────────────────────────────────────────────── + # Enable btrfs kernel module and quota support + boot.supportedFilesystems = lib.mkAfter [ "btrfs" ]; + boot.kernelModules = [ "btrfs" ]; + boot.extraModulePackages = with pkgs; [ btrfs-progs ]; # ── Filesystems ──────────────────────────────────────────────────────────── # NOTE: Fill in actual partition layout from CCP before deploying. @@ -592,6 +599,11 @@ jellyfin-web # Web UI # Hardware acceleration (common for ARM64 media) openssl # Already present; TLS for jellyfin + + # ── BTRFS tools ──────────────────────────────────────────────────────── + btrfs-progs # btrfs filesystem utilities (mkfs, subvolume, send/receive) + btrfs-heatmap # Visualize BTRFS space usage + btrfs-static # Static btrfs binaries for rescue ]; # ── Performance tuning for 64GB RAM / 18 cores ──────────────────────────── diff --git a/4-Infrastructure/netcup-vps/flake.nix b/4-Infrastructure/netcup-vps/flake.nix index f90616ca..07a4bf93 100644 --- a/4-Infrastructure/netcup-vps/flake.nix +++ b/4-Infrastructure/netcup-vps/flake.nix @@ -155,6 +155,11 @@ jellyfin # Media server jellyfin-ffmpeg # Jellyfin's patched FFmpeg (VA-API, QSV, OCL support) jellyfin-web # Web UI + + # ── BTRFS filesystem tools ─────────────────────────────────────── + btrfs-progs # mkfs, subvolume, send/receive, scrub, balance + btrfs-heatmap # Visualize BTRFS space usage + btrfs-static # Static binaries for rescue ]; # ── Python packages (full science stack) ──────────────────────────────