1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-06 08:47:00 +00:00
nix-darwin/modules/system/defaults/screencapture.nix
2024-11-12 14:37:26 +00:00

52 lines
1.4 KiB
Nix

{ lib, ... }:
with lib;
{
options = {
system.defaults.screencapture.location = mkOption {
type = types.nullOr types.str;
default = null;
description = ''
The filesystem path to which screencaptures should be written.
'';
};
system.defaults.screencapture.type = mkOption {
type = types.nullOr types.str;
default = null;
description = ''
The image format to use, such as "jpg".
'';
};
system.defaults.screencapture.disable-shadow = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
Disable drop shadow border around screencaptures. The default is false.
'';
};
system.defaults.screencapture.include-date = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
Include date and time in screenshot filenames. The default is true.
Screenshot 2024-01-09 at 13.27.20.png would be an example for true.
Screenshot.png
Screenshot 1.png would be an example for false.
'';
};
system.defaults.screencapture.show-thumbnail = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
Show thumbnail after screencapture before writing to file. The default is true.
'';
};
};
}