mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 20:21:14 +00:00
25 lines
611 B
Nix
25 lines
611 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.cardboard;
|
|
in
|
|
{
|
|
meta.maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
options.programs.cardboard = {
|
|
enable = lib.mkEnableOption (lib.mdDoc "cardboard");
|
|
|
|
package = lib.mkPackageOption pkgs "cardboard" { };
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
|
{
|
|
environment.systemPackages = [ cfg.package ];
|
|
|
|
# To make a cardboard session available for certain DMs like SDDM
|
|
services.xserver.displayManager.sessionPackages = [ cfg.package ];
|
|
}
|
|
(import ./wayland-session.nix { inherit lib pkgs; })
|
|
]);
|
|
}
|