41 lines
992 B
Nix
41 lines
992 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
let
|
|
cfg = config.modules.desktop.flameshot;
|
|
in
|
|
{
|
|
options.modules.desktop.flameshot = {
|
|
enable = lib.my.mkBoolOpt false;
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
home-manager.users.${config.user.name} =
|
|
{ config, ... }:
|
|
{
|
|
services.flameshot = {
|
|
enable = true;
|
|
package = pkgs.flameshot.overrideAttrs (old: {
|
|
cmakeFlags = [ "-DUSE_WAYLAND_GRIM=1" ];
|
|
});
|
|
settings = {
|
|
General = {
|
|
showStartupLaunchMessage = false;
|
|
disabledTrayIcon = true;
|
|
showHelp = false;
|
|
showDesktopNotification = false;
|
|
filenamePattern = "%F_%T";
|
|
savePath = "${config.home.homeDirectory}/Pictures/Screenshots";
|
|
savePathFixed = true;
|
|
saveAfterCopy = true;
|
|
uiColor = "#83A598";
|
|
};
|
|
};
|
|
};
|
|
home.packages = [ pkgs.grim ];
|
|
};
|
|
};
|
|
}
|