mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
26 lines
644 B
Nix
26 lines
644 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.labwc;
|
|
in
|
|
{
|
|
meta.maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
options.programs.labwc = {
|
|
enable = lib.mkEnableOption "labwc";
|
|
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
|
|
services.displayManager.sessionPackages = [ cfg.package ];
|
|
}
|
|
(import ./wayland-session.nix { inherit lib pkgs; })
|
|
]);
|
|
}
|