This commit is contained in:
Jiatao Liang 2026-03-22 23:57:21 -03:00 committed by GitHub
commit 8404ad69bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,6 +9,11 @@ in {
options = {
programs.mango = {
enable = lib.mkEnableOption "mango, a wayland compositor based on dwl";
addLoginEntry = lib.mkOption {
type = lib.types.bool;
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 +60,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;
};