nixos/hosts/common/disks/default.nix

8 lines
211 B
Nix
Raw Normal View History

2024-05-27 15:04:34 +01:00
{ device, fsType, encrypted, ... }:
let
ext4 = import ./gpt-bios-compact.nix { inherit device; };
btrfs = import ./luks-btrfs-subvolumes.nix { inherit device; };
in
if fsType == "ext4" then ext4 else btrfs