24 lines
522 B
Nix
24 lines
522 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.programs.dungeon-draft;
|
|
in {
|
|
options.programs.dungeon-draft = {
|
|
enable = lib.mkEnableOption "Dungeon Draft";
|
|
};
|
|
|
|
config = {
|
|
assertions = [
|
|
{
|
|
assertion = !cfg.enable;
|
|
message = ''
|
|
Dungeon Draft module is not yet fully configured.
|
|
Please download the Dungeon Draft executable (.exe) from the official website,
|
|
then configure the Wine environment and executable path as needed.
|
|
'';
|
|
}
|
|
];
|
|
};
|
|
}
|