We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9922ed2 commit bcb4da1Copy full SHA for bcb4da1
1 file changed
nix/nixos-modules.nix
@@ -9,6 +9,11 @@ in {
9
options = {
10
programs.mango = {
11
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
+ };
17
package = lib.mkOption {
18
type = lib.types.package;
19
default = self.packages.${pkgs.stdenv.hostPlatform.system}.mango;
@@ -55,7 +60,7 @@ in {
55
60
programs.xwayland.enable = lib.mkDefault true;
56
61
57
62
services = {
58
- displayManager.sessionPackages = [cfg.package];
63
+ displayManager.sessionPackages = lib.mkIf cfg.addLoginEntry [ cfg.package ];
59
64
65
graphical-desktop.enable = lib.mkDefault true;
66
};
0 commit comments