nixpkgs/nixos/modules/programs/wayland/labwc.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
644 B
Nix
Raw Normal View History

2024-01-05 01:01:11 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.programs.labwc;
in
{
meta.maintainers = with lib.maintainers; [ AndersonTorres ];
options.programs.labwc = {
enable = lib.mkEnableOption "labwc";
2024-01-05 01:01:11 +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
services.displayManager.sessionPackages = [ cfg.package ];
2024-01-05 01:01:11 +00:00
}
(import ./wayland-session.nix { inherit lib pkgs; })
]);
}