dotfiles/user-modules/discord/default.nix

23 lines
296 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib;
let
cfg = config.modules.discord;
in
{
options.modules.discord = {
enable = mkEnableOption "discord";
};
config = mkIf cfg.enable {
modules.unfree.allowedPackages = [ "discord" ];
home.packages = with pkgs; [ discord ];
};
}