helm/modules/desktop/apps/discord.nix

21 lines
450 B
Nix
Raw Normal View History

2020-03-28 22:48:43 -07:00
{ config, options, lib, pkgs, ... }:
2020-03-28 22:48:43 -07:00
with lib;
with lib.my;
let cfg = config.modules.desktop.apps.discord;
in {
2020-03-28 22:48:43 -07:00
options.modules.desktop.apps.discord = {
enable = mkBoolOpt false;
2020-03-28 22:48:43 -07:00
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
# If not installed from unstable, Discord will sometimes soft-lock itself
# on a "there's an update for discord" screen.
unstable.discord
# unstable.ripcord
2020-03-28 22:48:43 -07:00
];
};
}