1
0
Fork 0
nix-config/modules/home/apps/discord/default.nix
2025-06-04 17:53:27 +02:00

22 lines
338 B
Nix

{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.discord;
in
{
options.${namespace}.apps.discord = with types; {
enable = mkBoolOpt false "Whether or not to enable discord.";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [ discord ];
};
}