summaryrefslogtreecommitdiff
path: root/home/unstable.nix
blob: f4fbccc87dbb3d1acbc1a312cd16e7bf79651250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{config, pkgs, inputs, ...}:

with inputs.nixpkgs-unstable;
{
  home.packages = [
    (stdenv.mkDerivation {
        name = "signal-wayland";
        src = signal-desktop;
        phases = [ "buildPhase" ];
        buildPhase = ''
          mkdir -p $out
          cp -r $src/{bin,lib} $out
        '';
    })
    yazi
  ];

  xdg.desktopEntries."Signal" = {
      name = "Signal";
      exec =
      ''fish -c "signal-desktop --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto & && signal-desktop"'';
      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"];
  };
}