modules/nixos/disko-raid: add option for filesystem type

This commit is contained in:
zowoq 2024-02-05 09:34:47 +10:00
parent c0263ecb84
commit 36125d58aa

View file

@ -36,6 +36,11 @@ in
inputs.disko.nixosModules.disko
];
options = {
nixCommunity.disko.fsType = lib.mkOption {
type = lib.types.enum [ "btrfs" "ext4" ];
default = "ext4";
description = "Type of filesystem to use";
};
nixCommunity.disko.raidLevel = lib.mkOption {
type = lib.types.int;
default = 1;
@ -65,7 +70,7 @@ in
level = config.nixCommunity.disko.raidLevel;
content = {
type = "filesystem";
format = "ext4";
format = config.nixCommunity.disko.fsType;
mountpoint = "/";
};
};