nix-config/modules/home/discord/default.nix

26 lines
562 B
Nix
Raw Normal View History

2022-01-09 22:19:07 +01:00
{ config, lib, pkgs, ... }:
let
cfg = config.my.home.discord;
jsonFormat = pkgs.formats.json { };
in
{
options.my.home.discord = with lib; {
enable = mkEnableOption "discord configuration";
2024-07-08 15:11:30 +02:00
package = mkPackageOption pkgs "discord" { };
2022-01-09 22:19:07 +01:00
};
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
2024-07-08 15:11:30 +02:00
cfg.package
2022-01-09 22:19:07 +01:00
];
xdg.configFile."discord/settings.json".source =
jsonFormat.generate "discord.json" {
# Do not keep me from using the app just to force an update
SKIP_HOST_UPDATE = true;
};
};
}