Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.programs.wayland.miracle-wm;
|
|
in
|
|
{
|
|
options.programs.wayland.miracle-wm = {
|
|
enable = lib.mkEnableOption ''
|
|
miracle-wm, a tiling Mir based Wayland compositor. You can manually launch miracle-wm by
|
|
executing "exec miracle-wm" on a TTY, or launch it from a display manager.
|
|
Consult the USERGUIDE.md at <https://github.com/mattkae/miracle-wm> for information on
|
|
how to use & configure it
|
|
'';
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable (
|
|
lib.mkMerge [
|
|
{
|
|
environment = {
|
|
systemPackages = [ pkgs.miracle-wm ];
|
|
};
|
|
|
|
# To make the miracle-wm session available if a display manager like SDDM is enabled:
|
|
services.displayManager.sessionPackages = [ pkgs.miracle-wm ];
|
|
}
|
|
|
|
(import ./wayland-session.nix {
|
|
inherit lib pkgs;
|
|
# Hardcoded path in Mir, not really possible to disable
|
|
enableXWayland = true;
|
|
# No portal support yet: https://github.com/mattkae/miracle-wm/issues/164
|
|
enableWlrPortal = false;
|
|
enableGtkPortal = false;
|
|
})
|
|
]
|
|
);
|
|
|
|
meta.maintainers = with lib.maintainers; [ OPNA2608 ];
|
|
}
|