about summary refs log tree commit diff
path: root/home/modules/profiles/messaging/default.nix
blob: 1bdc873ff565d4bb5c96ab92e971b676859e0fc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{ config, lib, pkgs, ... }:
let cfg = config.profiles.messaging;
in
  {
    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; [ discord-canary aerc weechat element slack ];
      nixpkgs.allowedUnfree = [ "discord-canary" "slack" ];
    };
  }