aboutsummaryrefslogtreecommitdiff
path: root/modules/users/media/nixcord/default.nix
blob: d421abf99841d49a46d873990b1722435659b210 (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
32
33
34
35
36
37
38
39
40
{
  config,
  lib,
  ...
}:
let
  cfg = config.nx.media.nixcord;
  inherit (lib) mkOption types mkIf;
in
{
  options.nx.media.nixcord = {
    enable = lib.mkOption {
      description = "Enable nixcord and setup";
      type = types.bool;
      default = false;
    };
    frameless = mkOption {
      description = "Make discord frameless";
      type = types.bool;
      default = true;
    };
  };
  config = mkIf cfg.enable {
    programs.nixcord = {
      enable = true;
      config = {
        themeLinks = [
          "https://refact0r.github.io/system24/theme/system24.theme.css"
        ];
        frameless = cfg.frameless;
        plugins = {
          alwaysAnimate.enable = false;
          imageLink.enable = true;
          imageZoom.enable = true;
          translate.enable = true;
        };
      };
    };
  };
}