Files
nix-config/modules/nixos/disko/options.nix
mjallen18 baa831d002 cleanup
2025-08-26 18:30:57 -05:00

23 lines
485 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";
swapSize = mkOpt types.str "16G" "size of swap part";
};
}