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