summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorstuebinm2022-12-06 21:51:55 +0100
committerstuebinm2022-12-06 21:51:55 +0100
commit8a898bfb27d90b7eb1865264adccdc5c15d84e64 (patch)
treec5ae609fa6db93afc7d61d61ac86c0bcf26f97db /home
parent16b04ed1d41f3a9da02117bd56b7cc72db307475 (diff)
home: force signal to use wayland
… the whole desktop-entry-file-thingie made this take way more effort than it should've been
Diffstat (limited to '')
-rw-r--r--home/unstable.nix22
1 files changed, 21 insertions, 1 deletions
diff --git a/home/unstable.nix b/home/unstable.nix
index af4d9c5..fc22c80 100644
--- a/home/unstable.nix
+++ b/home/unstable.nix
@@ -11,6 +11,26 @@ with import inputs.nixpkgs-unstable {inherit system; };
elixir_1_12
elixir_ls
thunderbird
- signal-desktop
+ (stdenv.mkDerivation {
+ name = "signal-wayland";
+ src = signal-desktop;
+ phases = [ "buildPhase" ];
+ buildPhase = ''
+ mkdir -p $out
+ cp -r $src/{bin,lib} $out
+ '';
+ })
];
+
+ xdg.desktopEntries."Signal" = {
+ name = "Signal";
+ exec =
+ "signal-desktop --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto";
+ terminal = false;
+ type = "Application";
+ icon = "signal-desktop";
+ comment = "Private messaging from your desktop";
+ mimeType = [ "x-scheme-handler/sgnl" "x-scheme-handler/signalcaptcha"];
+ categories = ["Network" "InstantMessaging" "Chat"];
+ };
}