mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-23 22:19:33 +01:00
34 lines
949 B
Nix
34 lines
949 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
users.users.yoda = {
|
|
packages = with pkgs; [
|
|
signal-desktop # Signal client
|
|
];
|
|
};
|
|
|
|
# Signal does also use the NIXOS_OZONE_WL variable to enable Wayland support.
|
|
environment.sessionVariables.NIXOS_OZONE_WL = lib.mkIf (config.services.xserver.displayManager.gdm.wayland) "1";
|
|
|
|
# Sharp fonts if scaling != 1
|
|
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"
|
|
)
|
|
'';
|
|
});
|
|
})
|
|
];
|
|
|
|
home-manager.users.yoda = { osConfig, config, pkgs, ... }: {
|
|
dconf.settings = {
|
|
"org/gnome/shell" = {
|
|
favorite-apps = ["signal-desktop.desktop"];
|
|
};
|
|
};
|
|
};
|
|
}
|