From 1ea4dea1d127c54bb441abbfe6a259f37d39fbc1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 20 Feb 2021 17:53:32 -0500 Subject: [PATCH] Add modules/desktop/apps/signal --- hosts/kuro/default.nix | 1 + modules/desktop/apps/signal.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/desktop/apps/signal.nix diff --git a/hosts/kuro/default.nix b/hosts/kuro/default.nix index 9c6507ec..1d604c91 100644 --- a/hosts/kuro/default.nix +++ b/hosts/kuro/default.nix @@ -13,6 +13,7 @@ discord.enable = true; rofi.enable = true; # godot.enable = true; + signal.enable = true; }; browsers = { default = "brave"; diff --git a/modules/desktop/apps/signal.nix b/modules/desktop/apps/signal.nix new file mode 100644 index 00000000..283928d0 --- /dev/null +++ b/modules/desktop/apps/signal.nix @@ -0,0 +1,17 @@ +{ config, options, lib, pkgs, ... }: + +with lib; +with lib.my; +let cfg = config.modules.desktop.apps.signal; +in { + options.modules.desktop.apps.signal = { + enable = mkBoolOpt false; + }; + + config = mkIf cfg.enable { + user.packages = with pkgs; [ + # If not installed from the bleeding edge, signal will refuse to work. + unstable.signal-desktop + ]; + }; +}