2024-01-13 08:15:51 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.labwc;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
meta.maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
|
|
|
|
options.programs.labwc = {
|
2024-04-21 15:54:59 +00:00
|
|
|
enable = lib.mkEnableOption "labwc";
|
2024-01-13 08:15:51 +00:00
|
|
|
package = lib.mkPackageOption pkgs "labwc" { };
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
|
|
|
{
|
|
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
|
|
|
|
xdg.portal.config.wlroots.default = lib.mkDefault [ "wlr" "gtk" ];
|
|
|
|
|
|
|
|
# To make a labwc session available for certain DMs like SDDM
|
2024-04-21 15:54:59 +00:00
|
|
|
services.displayManager.sessionPackages = [ cfg.package ];
|
2024-01-13 08:15:51 +00:00
|
|
|
}
|
2024-10-04 16:56:33 +00:00
|
|
|
(import ./wayland-session.nix { inherit lib pkgs; })
|
2024-01-13 08:15:51 +00:00
|
|
|
]);
|
|
|
|
}
|