{ lib, namespace, ... }: with lib; let inherit (lib.${namespace}) mkOpt mkBoolOpt; in { options.${namespace}.hardware.disko = { enable = mkEnableOption "enable disko"; filesystem = mkOption { type = types.enum [ "bcachefs" "btrfs" ]; default = "btrfs"; description = "Filesystem to use for the root partition"; }; enableSwap = mkBoolOpt false "Enable swap"; enableLuks = mkBoolOpt false "Enable Luks"; swapSize = mkOpt types.str "16G" "size of swap part"; }; }