diff options
author | José Romildo <malaquias@gmail.com> | 2024-01-04 22:01:11 -0300 |
---|---|---|
committer | José Romildo <malaquias@gmail.com> | 2024-01-05 10:59:13 -0300 |
commit | 42c74f2067aed0654abf5a9db719562ead946332 (patch) | |
tree | 546f88c9bf0ea23853cbb71a4520eed3914c1422 /nixos/modules/programs | |
parent | ca9c705bfd7d5a4c42006e4c3b35ee6133f8214d (diff) |
nixos/labwc: init
Diffstat (limited to 'nixos/modules/programs')
-rw-r--r-- | nixos/modules/programs/wayland/labwc.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/modules/programs/wayland/labwc.nix b/nixos/modules/programs/wayland/labwc.nix new file mode 100644 index 0000000000000..d0806c3aa5d0e --- /dev/null +++ b/nixos/modules/programs/wayland/labwc.nix @@ -0,0 +1,25 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.programs.labwc; +in +{ + meta.maintainers = with lib.maintainers; [ AndersonTorres ]; + + options.programs.labwc = { + enable = lib.mkEnableOption (lib.mdDoc "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.xserver.displayManager.sessionPackages = [ cfg.package ]; + } + (import ./wayland-session.nix { inherit lib pkgs; }) + ]); +} |