helm/modules/desktop/apps/discord.nix

19 lines
433 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 the bleeding edge, Discord will sometimes
# soft-lock itself on a "there's an update for discord" screen.
unstable.discord
2020-03-28 22:48:43 -07:00
];
};
}