mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-15 06:32:57 +00:00
29 lines
690 B
Nix
29 lines
690 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
options = {
|
|
discord = {
|
|
enable = lib.mkEnableOption {
|
|
description = "Enable Discord.";
|
|
default = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.gui.enable && config.discord.enable) {
|
|
unfreePackages = [ "discord" ];
|
|
home-manager.users.${config.user} = {
|
|
home.packages = with pkgs; [ discord ];
|
|
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
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|