30 lines
605 B
Nix
30 lines
605 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
with lib; {
|
|
# NOTE: Dynamic imports based on option values are not supported in NixOS modules.
|
|
# To conditionally load a WM, either import all WM modules and use mkIf in each,
|
|
# or select the WM module directly in the host configuration.
|
|
imports = [];
|
|
|
|
options = {
|
|
desktop = {
|
|
wm = mkOption {
|
|
type = types.str;
|
|
default = "sway";
|
|
};
|
|
taskbar = mkOption {
|
|
type = types.str;
|
|
default = "waybar";
|
|
};
|
|
launcher = mkOption {
|
|
type = types.str;
|
|
default = "bemenu";
|
|
};
|
|
};
|
|
};
|
|
}
|