nix/modules/stuff/flameshot.nix

27 lines
811 B
Nix
Raw Normal View History

2024-10-16 16:08:40 +02:00
{ lib, config, ...}: let
inherit (lib) mkIf mkEnableOption;
2024-08-01 21:22:47 +02:00
cfg = config.chuj.stuff.flameshot;
2024-09-17 15:45:36 +02:00
user = config.chuj.system.user;
2024-08-01 21:22:47 +02:00
in {
options.chuj.stuff.flameshot = {
enable = mkEnableOption "flameshot";
};
config = mkIf cfg.enable {
2024-09-17 16:58:49 +02:00
home-manager.users.${user} = {
services.flameshot = {
enable = true;
settings = {
2024-10-16 11:40:24 +02:00
# https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini
2024-09-17 16:58:49 +02:00
General = {
disabledTrayIcon = true;
showStartupLaunchMessage = false;
2024-10-16 16:08:40 +02:00
showDesktopNotification = false;
userColors = "picker, #000000, #ffffff, #800000, #ff0000, #ffff00, #00ff00, #008000, #00ffff, #0000ff, #ff00ff, #800080";
drawColor = "#ff0000";
2024-09-17 16:58:49 +02:00
};
2024-08-01 21:22:47 +02:00
};
};
};
};
2024-09-17 15:45:36 +02:00
}