nix-config/modules/home-manager/desktop/flameshot.nix

27 lines
534 B
Nix
Raw Normal View History

{ config, lib, ... }:
with lib;
let
cfg = config.homeManagerModules.desktop.flameshot;
in
{
options.homeManagerModules.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
config = mkIf cfg.enable {
services.flameshot = {
enable = true;
settings = {
General = {
disabledTrayIcon = false;
saveAfterCopy = true;
savePath = "${config.xdg.userDirs.pictures}/Screenshots";
showHelp = false;
uiColor = "#60a5fa";
};
};
};
};
}