system/modules/home-manager/programs/flameshot.nix

26 lines
561 B
Nix

{ config, lib, ... }:
let cfg = config.local.programs.flameshot; in
{
options.local.programs.flameshot = with lib; {
enable = mkEnableOption "flameshot";
};
config = lib.mkIf cfg.enable {
services.flameshot = {
enable = true;
# See: https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini
settings = {
General = {
disabledTrayIcon = true;
savePathFixed = true;
showDesktopNotification = false;
showSidePanelButton = true;
};
};
};
};
}