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

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

36 lines
689 B
Nix
Raw Normal View History

2024-01-04 22:01:11 -03:00
{
config,
lib,
pkgs,
...
}:
let
cfg = config.programs.labwc;
in
{
meta.maintainers = with lib.maintainers; [ ];
2024-01-04 22:01:11 -03:00
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 ];
2024-01-04 22:01:11 -03:00
}
(import ./wayland-session.nix { inherit lib pkgs; })
2024-01-04 22:01:11 -03:00
]
);
}