aboutsummaryrefslogtreecommitdiff
path: root/modules/home/media/nixcord/default.nix
blob: c7f2b4b241afd3c94b061e9a4152c4b6377cd7be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
  config,
  lib,
  ...
}:
let
  cfg = config.nx.media.nixcord;
  inherit (lib) mkEnableOption mkIf;
in
{
  options.nx.media.nixcord = {
    enable = mkEnableOption "nixcord and setup";
  };
  config = mkIf cfg.enable {
    programs.nixcord = {
      enable = true;
      config = {
        themeLinks = [
          "https://refact0r.github.io/system24/theme/system24.theme.css"
        ];
        frameless = true;
        plugins = {
          alwaysAnimate.enable = false;
          imageLink.enable = true;
          imageZoom.enable = true;
          translate.enable = true;
        };
      };
    };
  };
}