nixfiles/home/package-sets/communication.nix
NullBite 306b12b1e1
switch element-desktop-wayland to element-desktop
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).
2024-02-29 09:56:45 -05:00

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
];
};
}