2025-05-29 14:19:19 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
inputs,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.modules.disko;
|
|
|
|
profile = import "${inputs.self}/profiles/disko/${cfg.profile}.nix";
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.disko = {
|
|
|
|
enable = mkEnableOption "Disko module";
|
|
|
|
profile = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = null;
|
|
|
|
description = "The profile to use for the disko module.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2025-06-11 11:58:54 +02:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
disko.devices = profile.disko.devices;
|
|
|
|
};
|
2025-05-29 14:19:19 +02:00
|
|
|
}
|