aboutsummaryrefslogtreecommitdiff
path: root/modules/homeModules/dunst.nix
blob: c95f1e3036bc015cfafc5fe2889d982ba434a69e (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
{inputs, ...}: {
  flake.homeModules.dunst = {
    pkgs,
    config,
    lib,
    ...
  }: {
    options.customs = {
      dunst.enable = lib.mkEnableOption "enable dunst";
    };
    config = lib.mkIf config.customs.dunst.enable {
      home.packages = [pkgs.libnotify];
      services.dunst = {
        enable = true;
        settings = {
          global = {
            origin = "bottom-right";
            notification_limit = 5;
            progress_bar = true;
          };
        };
      };
    };
  };
}