dotfiles/common/users/homeModules/flameshot.nix
2025-05-23 23:50:57 -04:00

37 lines
845 B
Nix

{ config, pkgs, ... }:
{
imports = [./unstable.nix];
# needed to workaround https://github.com/nix-community/home-manager/issues/2064
systemd.user.targets.tray = {
Unit = {
Description = "Home Manager System Tray";
Requires = [ "graphical-session-pre.target" ];
};
};
programs = {
plasma = {
hotkeys = {
commands = {
"flameshot" = {
name = "flameshot";
key = "Print";
command = "flameshot gui";
};
};
};
};
};
services = {
flameshot = {
enable = true;
package = pkgs.unstable.flameshot;
settings = {
General = {
savePath = "/home/${config.home.username}/ss/";
saveAsFileExtension = ".png";
showDesktopNotification = false;
};
};
};
};
}