feat(dgn-hardware): Allow bcachefs configuration

This commit is contained in:
Tom Hubrecht 2024-01-11 12:58:27 +01:00
parent fc0f4a603a
commit 345bdd4d44
2 changed files with 5 additions and 0 deletions

View file

@ -15,6 +15,8 @@ lib.extra.mkConfig {
lib.extra.enableAttrs' "enabled" [ "sshd-bruteforce" "sshd-timeout" ]; lib.extra.enableAttrs' "enabled" [ "sshd-bruteforce" "sshd-timeout" ];
services.netbird.enable = true; services.netbird.enable = true;
dgn-hardware.useBcachefs = true;
}; };
root = ./.; root = ./.;

View file

@ -16,6 +16,7 @@ in {
}; };
useZfs = mkEnableOption "zfs configuration."; useZfs = mkEnableOption "zfs configuration.";
useBcachefs = mkEnableOption "bcachefs configuration";
}; };
config = mkIf cfg.enable (mkMerge [ config = mkIf cfg.enable (mkMerge [
@ -45,6 +46,8 @@ in {
}; };
}) })
(mkIf cfg.useBcachefs { boot.supportedFilesystems = [ "bcachefs" ]; })
(mkIf cfg.useZfs { (mkIf cfg.useZfs {
boot = { boot = {
initrd.availableKernelModules = [ initrd.availableKernelModules = [