aboutsummaryrefslogtreecommitdiffstats
path: root/modules/media/grim/default.nix
blob: 549ed013d91af65e731174102e1fa0c0ae6a5bc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Screenshot utility for wlroots Wayland compositors
{
  config,
  lib,
  pkgs,
  ...
}:
{
  options.media.grim = {
    enable = lib.mkEnableOption "Enables grim.";
    package = lib.mkOption {
      type = lib.types.package;
      readOnly = true;
      default = pkgs.grim;
      description = "The grim package to use.";
    };
  };

  config = lib.mkIf config.media.grim.enable {
    home.packages = [ config.media.grim.package ];
  };
}