mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 21:25:30 +03:00
nixos/miracle-wm: init
This commit is contained in:
parent
e73d97b2d6
commit
ed443c58a8
2 changed files with 44 additions and 0 deletions
|
@ -304,6 +304,7 @@
|
||||||
./programs/wayland/hyprlock.nix
|
./programs/wayland/hyprlock.nix
|
||||||
./programs/wayland/hyprland.nix
|
./programs/wayland/hyprland.nix
|
||||||
./programs/wayland/labwc.nix
|
./programs/wayland/labwc.nix
|
||||||
|
./programs/wayland/miracle-wm.nix
|
||||||
./programs/wayland/river.nix
|
./programs/wayland/river.nix
|
||||||
./programs/wayland/sway.nix
|
./programs/wayland/sway.nix
|
||||||
./programs/wayland/waybar.nix
|
./programs/wayland/waybar.nix
|
||||||
|
|
43
nixos/modules/programs/wayland/miracle-wm.nix
Normal file
43
nixos/modules/programs/wayland/miracle-wm.nix
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
{
|
||||||
|
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;
|
||||||
|
})
|
||||||
|
]
|
||||||
|
);
|
||||||
|
|
||||||
|
meta.maintainers = with lib.maintainers; [ OPNA2608 ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue