From 345bdd4d449659de7ec11a49b3c8ebc8237f2767 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 11 Jan 2024 12:58:27 +0100 Subject: [PATCH] feat(dgn-hardware): Allow bcachefs configuration --- machines/vault01/_configuration.nix | 2 ++ modules/dgn-hardware.nix | 3 +++ 2 files changed, 5 insertions(+) diff --git a/machines/vault01/_configuration.nix b/machines/vault01/_configuration.nix index 2f1eb5c..a7393db 100644 --- a/machines/vault01/_configuration.nix +++ b/machines/vault01/_configuration.nix @@ -15,6 +15,8 @@ lib.extra.mkConfig { lib.extra.enableAttrs' "enabled" [ "sshd-bruteforce" "sshd-timeout" ]; services.netbird.enable = true; + + dgn-hardware.useBcachefs = true; }; root = ./.; diff --git a/modules/dgn-hardware.nix b/modules/dgn-hardware.nix index f235743..04495a9 100644 --- a/modules/dgn-hardware.nix +++ b/modules/dgn-hardware.nix @@ -16,6 +16,7 @@ in { }; useZfs = mkEnableOption "zfs configuration."; + useBcachefs = mkEnableOption "bcachefs configuration"; }; config = mkIf cfg.enable (mkMerge [ @@ -45,6 +46,8 @@ in { }; }) + (mkIf cfg.useBcachefs { boot.supportedFilesystems = [ "bcachefs" ]; }) + (mkIf cfg.useZfs { boot = { initrd.availableKernelModules = [