nix/modules/stuff/flameshot.nix
2024-10-16 16:08:40 +02:00

26 lines
811 B
Nix

{ 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";
};
};
};
};
};
}