2024-08-23 16:11:48 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
|
|
|
inherit (lib)
|
|
|
|
mkOption
|
|
|
|
types
|
|
|
|
;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
valhalla = mkOption {
|
|
|
|
type = types.submodule (
|
|
|
|
{ extendModules, ... }:
|
|
|
|
let
|
|
|
|
osVariant = extendModules { };
|
|
|
|
linuxVariant = osVariant.extendModules { };
|
|
|
|
windowsVariant = osVariant.extendModules { };
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
linux = mkOption {
|
|
|
|
inherit (linuxVariant) type;
|
2024-08-23 17:02:06 +00:00
|
|
|
description = "The options for setting up Linux.";
|
2024-08-23 16:11:48 +00:00
|
|
|
default = {};
|
|
|
|
visible = "shallow";
|
|
|
|
};
|
|
|
|
|
|
|
|
windows = mkOption {
|
|
|
|
inherit (windowsVariant) type;
|
2024-08-23 17:02:06 +00:00
|
|
|
description = "The options for setting up Windows.";
|
2024-08-23 16:11:48 +00:00
|
|
|
default = {};
|
|
|
|
visible = "shallow";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
});
|
|
|
|
|
|
|
|
description = "Configuration for PortValhalla.";
|
|
|
|
default = {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|