{ lib, config, ...}: let inherit (lib) mkIf mkEnableOption; cfg = config.chuj.stuff.flameshot; user = config.chuj.system.user; in { options.chuj.stuff.flameshot = { enable = mkEnableOption "flameshot"; }; config = mkIf cfg.enable { home-manager.users.${user} = { services.flameshot = { enable = true; settings = { # https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini General = { disabledTrayIcon = true; showStartupLaunchMessage = false; showDesktopNotification = false; userColors = "picker, #000000, #ffffff, #800000, #ff0000, #ffff00, #00ff00, #008000, #00ffff, #0000ff, #ff00ff, #800080"; drawColor = "#ff0000"; }; }; }; }; }; }