Files
nix-config/modules/nixos/disko/options.nix
mjallen18 30fb21e062 temp
2025-09-06 10:28:07 -05:00

25 lines
534 B
Nix

{ 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";
};
}