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

24 lines
691 B
Nix

{ lib, pkgs, config, ...}: let
inherit (lib) mkIf mkEnableOption mkOption;
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 = {
# todo: add some shit (userColors, ui colors, check the other stuff)
# https://github.com/flameshot-org/flameshot/blob/master/flameshot.example.ini
General = {
disabledTrayIcon = true;
showStartupLaunchMessage = false;
};
};
};
};
};
}