Skip to content

Commit bcb4da1

Browse files
committed
Sets default for addLoginEntry correctly
1 parent 9922ed2 commit bcb4da1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

nix/nixos-modules.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ in {
99
options = {
1010
programs.mango = {
1111
enable = lib.mkEnableOption "mango, a wayland compositor based on dwl";
12+
addLoginEntry = lib.mkOption {
13+
type = lib.types.boolean;
14+
default = true;
15+
description = "Whether to add a login entry to the display manager for mango";
16+
};
1217
package = lib.mkOption {
1318
type = lib.types.package;
1419
default = self.packages.${pkgs.stdenv.hostPlatform.system}.mango;
@@ -55,7 +60,7 @@ in {
5560
programs.xwayland.enable = lib.mkDefault true;
5661

5762
services = {
58-
displayManager.sessionPackages = [cfg.package];
63+
displayManager.sessionPackages = lib.mkIf cfg.addLoginEntry [ cfg.package ];
5964

6065
graphical-desktop.enable = lib.mkDefault true;
6166
};

0 commit comments

Comments
 (0)