fix(fs): remove btrfs
This commit is contained in:
parent
bdf58c21f3
commit
c120a6e6cd
2 changed files with 1 additions and 24 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue