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