nixos/modules/common/applications/discord.nix

25 lines
555 B
Nix
Raw Normal View History

2024-05-18 17:59:38 -04:00
{ config, pkgs, lib, ... }:
{
options = {
discord = {
enable = lib.mkEnableOption {
description = "Enable Discord";
default = false;
};
};
};
config = lib.mkIf (config.gui.enable && config.discord.enable) {
home-manager.users.${config.user} = {
home.packages = with pkgs [
discord
];
xdg.configFile."discord/settings.json".text = ''
{
"OPEN_ON_STARTUP": true,
"MINIMIZE_TO_TRAY": false,
"SKIP_HOST_UPDATE": true
}
'';
};
};
}