about summary refs log tree commit diff
path: root/home/profiles/messaging/default.nix
blob: 9a16f4fe07cc9147a358ee09c69ff12b96d5767a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, lib, pkgs, ... }:
let cfg = config.profiles.messaging;
in
{
  imports = [ ../../modules/programs/nixpkgs ];

  options.profiles.messaging = {
    enable = lib.mkEnableOption
      "A profile that enables the system to communicate via internet.";
  };

  config = lib.mkIf cfg.enable {
    home.packages = with pkgs; [
      aerc
      (discord-canary-openasar.override { waylandSupport = true; })
      element-desktop
      slack
      weechat
    ];

    nixpkgs.allowedUnfree = [ "slack" ];
  };
}