mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
62 lines
1.8 KiB
Nix
62 lines
1.8 KiB
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
# Import unstable with niv.
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
unstable = import (import ../nix/sources.nix).unstable {
|
|
inherit pkgs;
|
|
};
|
|
};
|
|
|
|
users.users.yoda = {
|
|
packages = with pkgs; [
|
|
signal-desktop-beta # Signal client
|
|
];
|
|
};
|
|
# users.users.yoda = {
|
|
# packages = with pkgs.unstable; [
|
|
# signal-desktop-beta # Signal client
|
|
# ];
|
|
# };
|
|
|
|
# TODO: lib.mkIf (config.services.xserver.displayManager.gdm.wayland)
|
|
|
|
# TODO: Signal on Wayland without crash.
|
|
# Signal does also use the NIXOS_OZONE_WL variable to enable Wayland support.
|
|
# However, it does currently crash in this mode.
|
|
# See
|
|
# https://github.com/stelcodes/nixos-config/commit/79071d30912c5b6c2560654925bcc98533cf758f
|
|
# https://github.com/NixOS/nixpkgs/pull/222163
|
|
# https://github.com/NixOS/nixpkgs/issues/261101
|
|
|
|
# Wayland support:
|
|
# The following worked once ... But currently Signal crashes.
|
|
# signal-desktop-beta --use-tray-icon --enable-features=UseOzonePlatform --ozone-platform=wayland
|
|
|
|
# Temporary fix.
|
|
# https://github.com/NixOS/nixpkgs/issues/222043#issuecomment-1493457041
|
|
# nixpkgs.overlays = [
|
|
# (self: super: {
|
|
# signal-desktop-beta = super.signal-desktop-beta.overrideAttrs (old: {
|
|
# preFixup = old.preFixup + ''
|
|
# gappsWrapperArgs+=(
|
|
# --add-flags "--enable-features=UseOzonePlatform"
|
|
# --add-flags "--ozone-platform=wayland"
|
|
# )
|
|
# '';
|
|
# });
|
|
# })
|
|
# ];
|
|
# nixpkgs.overlays = [
|
|
# (self: super: {
|
|
# unstable.signal-desktop-beta = super.unstable.signal-desktop-beta.overrideAttrs (old: {
|
|
# preFixup = old.preFixup + ''
|
|
# gappsWrapperArgs+=(
|
|
# --add-flags "--enable-features=UseOzonePlatform"
|
|
# --add-flags "--ozone-platform=wayland"
|
|
# )
|
|
# '';
|
|
# });
|
|
# })
|
|
# ];
|
|
}
|