feat(fs): add f2fs and zfs

This commit is contained in:
514fpv 2024-01-09 13:17:47 +08:00
parent da90dbc46e
commit 4d31fbbe2a
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
3 changed files with 55 additions and 1 deletions

View file

@ -6,19 +6,22 @@
in {
imports = [
./ext4.nix
./f2fs.nix
./xfs.nix
./zfs.nix
#./bcachefs.nix
./btrfs.nix
];
options.global.fs = {
type = mkOption {
type = with types; enum [ "ext4" "xfs" "bcachefs" "btrfs" ];
type = with types; enum [ "ext4" "f2fs" "xfs" "zfs" "bcachefs" "btrfs" ];
default = "bcachefs";
description = "filesystem type to use for persistent state storage";
};
store = mkOption {
type = with types; str;
default = config.networking.hostName;
description = "UUID/dataset of nix store backing device";
};
esp = {