diff --git a/global/fs/btrfs.nix b/global/fs/btrfs.nix deleted file mode 100644 index 66d53090..00000000 --- a/global/fs/btrfs.nix +++ /dev/null @@ -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"; - }; - }; -} diff --git a/global/fs/default.nix b/global/fs/default.nix index 67df0b5f..40aeaaea 100644 --- a/global/fs/default.nix +++ b/global/fs/default.nix @@ -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"; };