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 inputs.disko.nixosModules.disko
]; ];
options = { 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 { nixCommunity.disko.raidLevel = lib.mkOption {
type = lib.types.int; type = lib.types.int;
default = 1; default = 1;
@ -65,7 +70,7 @@ in
level = config.nixCommunity.disko.raidLevel; level = config.nixCommunity.disko.raidLevel;
content = { content = {
type = "filesystem"; type = "filesystem";
format = "ext4"; format = config.nixCommunity.disko.fsType;
mountpoint = "/"; mountpoint = "/";
}; };
}; };