mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-05 03:01:38 -04:00
Merge branch 'DreamMaoMao:main' into main
This commit is contained in:
commit
126a3785ce
21 changed files with 649 additions and 143 deletions
|
|
@ -11,7 +11,7 @@
|
|||
wayland,
|
||||
wayland-protocols,
|
||||
wayland-scanner,
|
||||
xcbutilwm,
|
||||
libxcb-wm,
|
||||
xwayland,
|
||||
meson,
|
||||
ninja,
|
||||
|
|
@ -57,7 +57,7 @@ stdenv.mkDerivation {
|
|||
]
|
||||
++ lib.optionals enableXWayland [
|
||||
libX11
|
||||
xcbutilwm
|
||||
libxcb-wm
|
||||
xwayland
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,10 @@ in {
|
|||
options = {
|
||||
programs.mango = {
|
||||
enable = lib.mkEnableOption "mango, a wayland compositor based on dwl";
|
||||
addLoginEntry = lib.mkEnableOption {
|
||||
default = true;
|
||||
description = "Whether to add a login entry to the display manager for mango";
|
||||
};
|
||||
package = lib.mkOption {
|
||||
type = lib.types.package;
|
||||
default = self.packages.${pkgs.stdenv.hostPlatform.system}.mango;
|
||||
|
|
@ -55,7 +59,7 @@ in {
|
|||
programs.xwayland.enable = lib.mkDefault true;
|
||||
|
||||
services = {
|
||||
displayManager.sessionPackages = [cfg.package];
|
||||
displayManager.sessionPackages = lib.mkIf cfg.addLoginEntry [ cfg.package ];
|
||||
|
||||
graphical-desktop.enable = lib.mkDefault true;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue