Add modules/desktop/apps/signal

This commit is contained in:
Henrik Lissner 2021-02-20 17:53:32 -05:00
parent 404e0c2881
commit 1ea4dea1d1
2 changed files with 18 additions and 0 deletions

View file

@ -13,6 +13,7 @@
discord.enable = true;
rofi.enable = true;
# godot.enable = true;
signal.enable = true;
};
browsers = {
default = "brave";

View file

@ -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
];
};
}