/ modules / programs / fnott.nix
fnott.nix
 1  {
 2    pkgs,
 3    config,
 4    lib,
 5    ...
 6  }: let
 7    cfg = config.programs.fnott;
 8  in {
 9    options.programs.fnott.enable = lib.mkEnableOption "fnott";
10  
11    config = lib.mkIf cfg.enable {
12      hm.services.fnott = {
13        enable = true;
14        settings = {
15          main = {
16            max-height = 200;
17            notification-margin = 5;
18            stacking-order = "top-down";
19            anchor = "bottom-right";
20            layer = "overlay";
21  
22            max-timeout = 15;
23            default-timeout = 7;
24          };
25        };
26      };
27    };
28  }