2024-05-07 22:02:59 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-05-02 21:14:21 +00:00
|
|
|
|
|
|
|
let
|
2024-05-07 22:02:59 +00:00
|
|
|
cfg = config.host.apps.social;
|
2024-05-02 21:14:21 +00:00
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
2024-05-07 22:02:59 +00:00
|
|
|
options = {
|
|
|
|
host.apps.social.enable = mkEnableOption (mdDoc "Enables chat apps");
|
|
|
|
};
|
2024-05-02 21:14:21 +00:00
|
|
|
|
2024-05-07 22:02:59 +00: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 21:14:21 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
host.ui.flatpak.enable = true;
|
2024-05-08 14:15:41 +00:00
|
|
|
services.flatpak.packages = [
|
|
|
|
"com.discordapp.Discord"
|
|
|
|
"chat.schildi.desktop"
|
|
|
|
];
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-05-02 21:14:21 +00:00
|
|
|
}
|