2023-10-18 13:29:14 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
users.users.yoda = {
|
|
|
|
packages = with pkgs; [
|
2023-12-20 17:54:57 +01:00
|
|
|
signal-desktop # Signal client
|
2023-10-18 13:29:14 +02:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Signal does also use the NIXOS_OZONE_WL variable to enable Wayland support.
|
2023-12-20 17:54:57 +01:00
|
|
|
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "1";
|
2024-01-02 10:56:15 +01:00
|
|
|
|
2024-02-04 14:52:59 +01:00
|
|
|
# Sharp fonts if scaling != 1
|
2024-01-02 10:56:15 +01:00
|
|
|
nixpkgs.overlays = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) [
|
|
|
|
(self: super: {
|
|
|
|
signal-desktop = super.signal-desktop.overrideAttrs (old: {
|
|
|
|
preFixup = (old.preFixup or "") + ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--add-flags "--enable-features=UseOzonePlatform"
|
|
|
|
--add-flags "--ozone-platform=x11"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
})
|
|
|
|
];
|
2023-10-18 13:29:14 +02:00
|
|
|
}
|