nix/modules/stuff/flameshot.nix

23 lines
523 B
Nix
Raw Permalink Normal View History

2024-08-01 21:22:47 +02:00
{ lib, pkgs, config, ...}: let
inherit (lib) mkIf mkEnableOption mkOption;
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 = {
General = {
disabledTrayIcon = true;
showStartupLaunchMessage = false;
};
2024-08-01 21:22:47 +02:00
};
};
};
};
2024-09-17 15:45:36 +02:00
}