fix(fs): remove btrfs

This commit is contained in:
514fpv 2024-01-24 08:28:48 +08:00
parent bdf58c21f3
commit c120a6e6cd
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
2 changed files with 1 additions and 24 deletions

View file

@ -1,22 +0,0 @@
{ pkgs
, lib
, config
, ... }: with lib; let
cfg = config.global.fs;
in {
options.global.fs.btrfs = {
options = mkOption {
type = with types; listOf str;
default = [ "noatime" "compress=zstd" ];
description = "btrfs mount options";
};
};
config = mkIf (cfg.type == "btrfs") {
fileSystems."/nix" =
{ inherit (cfg.btrfs) options;
device = "/dev/disk/by-uuid/${cfg.store}";
fsType = "btrfs";
};
};
}

View file

@ -10,12 +10,11 @@ in {
./xfs.nix
./zfs.nix
#./bcachefs.nix
./btrfs.nix
];
options.global.fs = {
type = mkOption {
type = with types; enum [ "ext4" "f2fs" "xfs" "zfs" "bcachefs" "btrfs" ];
type = with types; enum [ "ext4" "f2fs" "xfs" "zfs" "bcachefs" ];
default = "bcachefs";
description = "filesystem type to use for persistent state storage";
};