modules/nixos/disko-raid: add option for filesystem type
This commit is contained in:
parent
c0263ecb84
commit
36125d58aa
1 changed files with 6 additions and 1 deletions
|
@ -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 = "/";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue