2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-02 17:14:21 -04:00
|
|
|
|
|
|
|
let
|
2024-05-07 18:02:59 -04:00
|
|
|
cfg = config.host.apps.social;
|
2024-05-02 17:14:21 -04:00
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
2024-05-07 18:02:59 -04:00
|
|
|
options = {
|
|
|
|
host.apps.social.enable = mkEnableOption (mdDoc "Enables chat apps");
|
|
|
|
};
|
2024-05-02 17:14:21 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
# Check Beeper Flatpak status here: https://github.com/daegalus/beeper-flatpak-wip/issues/1
|
|
|
|
beeper
|
|
|
|
];
|
2024-05-02 17:14:21 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
host.ui.flatpak.enable = true;
|
2024-05-08 10:15:41 -04:00
|
|
|
services.flatpak.packages = [
|
|
|
|
"com.discordapp.Discord"
|
|
|
|
"chat.schildi.desktop"
|
|
|
|
];
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-05-02 17:14:21 -04:00
|
|
|
}
|