2022-05-05 23:01:56 -04:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2022-04-28 22:43:50 -04:00
|
|
|
|
2022-12-21 14:18:03 -07:00
|
|
|
options = {
|
|
|
|
discord = {
|
|
|
|
enable = lib.mkEnableOption {
|
|
|
|
description = "Enable Discord.";
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf (config.gui.enable && config.discord.enable) {
|
2022-06-04 21:08:09 -04:00
|
|
|
unfreePackages = [ "discord" ];
|
2022-05-05 23:01:56 -04:00
|
|
|
home-manager.users.${config.user} = {
|
2022-04-28 22:43:50 -04:00
|
|
|
home.packages = with pkgs; [ discord ];
|
2022-06-13 20:29:49 -04:00
|
|
|
xdg.configFile."discord/settings.json".text = ''
|
|
|
|
{
|
|
|
|
"BACKGROUND_COLOR": "#202225",
|
|
|
|
"IS_MAXIMIZED": false,
|
|
|
|
"IS_MINIMIZED": false,
|
|
|
|
"OPEN_ON_STARTUP": false,
|
|
|
|
"MINIMIZE_TO_TRAY": false,
|
|
|
|
"SKIP_HOST_UPDATE": true
|
|
|
|
}
|
|
|
|
'';
|
2022-04-28 22:43:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|