From 5994b99288cd22b5c3e8556fc0c7442f1276848a Mon Sep 17 00:00:00 2001 From: Matt Jallen Date: Tue, 3 Mar 2026 14:48:32 -0600 Subject: [PATCH] disks --- .../x86_64-linux/matt-nixos/filesystems.nix | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/systems/x86_64-linux/matt-nixos/filesystems.nix b/systems/x86_64-linux/matt-nixos/filesystems.nix index 0840b0c..b60174c 100755 --- a/systems/x86_64-linux/matt-nixos/filesystems.nix +++ b/systems/x86_64-linux/matt-nixos/filesystems.nix @@ -1,4 +1,4 @@ -{ ... }: +{ lib, ... }: let defaultLocalOptions = [ "compress=zstd" @@ -10,6 +10,19 @@ let ]; in { + boot.initrd = { + supportedFilesystems = { + bcachefs = true; + }; + + clevis = { + enable = lib.mkForce true; + devices = { + "/dev/disk/by-uuid/2b7e2033-2bcc-4fff-b248-833289f07f3d".secretFile = ../../../secrets/hdd.jwe; # config.sops.secrets."disk-key".path; + }; + }; + }; + fileSystems = { "/etc".neededForBoot = true; "/media/matt/data" = { @@ -20,6 +33,14 @@ in ] ++ defaultLocalOptions; }; + "/media/matt/slow" = { + device = "/dev/disk/by-uuid/2b7e2033-2bcc-4fff-b248-833289f07f3d"; + fsType = "bcachefs"; + options = [ + "noatime" + ] + ++ defaultLocalOptions; + }; # # Network shares # "/media/nas/backup" = {