element-desktop-wayland is just a wrapper for element-desktop that sets NIXOS_OZONE_WL=1 which I can do myself dependent on my environment and whether or not Electron Ozone Platform is functional on my system (looking at you, NVIDIA).
26 lines
668 B
Nix
26 lines
668 B
Nix
{ pkgs, lib, config, osConfig ? {}, inputs, ... }:
|
|
let
|
|
cfg = config.nixfiles.packageSets.communication;
|
|
rustdesk-pkg = if (lib.strings.hasInfix "23.11" lib.version) then
|
|
inputs.nixpkgs-unstable.legacyPackages.${pkgs.system}.rustdesk-flutter
|
|
else
|
|
pkgs.rustdesk-flutter;
|
|
in
|
|
{
|
|
options.nixfiles.packageSets.communication = {
|
|
enable = lib.mkEnableOption "communication package set";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; lib.optionals config.nixfiles.meta.graphical [
|
|
element-desktop
|
|
telegram-desktop
|
|
signal-desktop
|
|
thunderbird
|
|
vesktop
|
|
rustdesk-pkg
|
|
] ++ [
|
|
irssi
|
|
];
|
|
};
|
|
}
|